• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator




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?

 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Imad Ali
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?




 
reply
    Bookmark Topic Watch Topic
  • New Topic