my dog learned polymorphism*
The moose likes I/O and Streams and the fly likes problem while comparing phone numbers inside two different files 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 » I/O and Streams
Bookmark "problem while comparing phone numbers inside two different files" Watch "problem while comparing phone numbers inside two different files" New topic
Author

problem while comparing phone numbers inside two different files

fioana elegant
Greenhorn

Joined: Oct 06, 2010
Posts: 16

where base is file having all numbers and dnd file have numbers to be excluded
i am not able to understand how this program is comparing numbers and whether all numbers in dnd file are compared or not.
only first number is checked in dnd file instead of all new line separated numbers.
can someone help in finding bug???
Kurtcebe Eroglu
Ranch Hand

Joined: Jan 30, 2007
Posts: 30
Haven't gone through it all but you seem to be missing curly braces for while loop so only the first if statement that follows is looped.

You may also try to use your debugger to step in the code to see what's the problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem while comparing phone numbers inside two different files
 
Similar Threads
array question?
read and write from txt file
i need to skip lines after exception
read lines after exception
Error printing out from a read in file.