wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes ArrayList does not print to terminal window after if statement inclusion, help? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ArrayList does not print to terminal window after if statement inclusion, help?" Watch "ArrayList does not print to terminal window after if statement inclusion, help?" New topic
Author

ArrayList does not print to terminal window after if statement inclusion, help?

Imad Ali
Greenhorn

Joined: Jan 04, 2009
Posts: 21




Above is the much editied code, finally i got the files to print to the terminal window, then i added the much need if statment and nothing to the window again


can some one complie it or till me what the problem is?

Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18538
    
  40

can some one complie it or till me what the problem is?


Can you give more detail than just "I added "if" and it doesn't work"? Which "if" are you talking about?

You have to show a bit more effort than just provide a code dump, and a "adding an if" and it doesn't work.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Imad Ali
Greenhorn

Joined: Jan 04, 2009
Posts: 21
Ohh ok, no problem,


well the "if" statement on Lines 50/51


after adding that if statment I got nothing to the terminal window, would it should do is compute the files that make up the two ArrayLists


it should essentially filet out files that are equal in size, but different in hash code value


its like its filtered out everything


or maybe im referecing the arraylist items wrong or theres nothing in the array lists i dont know whats gone wrong, as it all compiles

Imad Ali
Greenhorn

Joined: Jan 04, 2009
Posts: 21
it does print with if statement sorry i got another class mixed up



this is the output (some of it)



$R3QSQ3M
here we are---$R49HV83.txt
$Recycle.Bin
here we are---autoexec.bat




dollar sign + numbers?




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ArrayList does not print to terminal window after if statement inclusion, help?
 
Similar Threads
listFiles(new FilenameFilter()) and recursion
access .txt files under the particlar parent directory
Making a Structure out of a class
code redundancy
Wildcard file searches