aspose file tools*
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
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.
 
 
subject: problem while comparing phone numbers inside two different files