That's what I want to know... file1 and file2 are BufferedReader's defined in main. Why doesn't it see them in getLine()? Ok, bright Idea... what if read the files completely in the getLine method into 2 separate array lists and compare the entries that way? [ November 26, 2002: Message edited by: Sam Smoot ]
file1 and file2 are defined in your main method. That's why getLine() can't see them. SCOPE SCOPE SCOPE. You either need to define your file1 and file2 outside of main() or, a better idea, pass them to your getLine(BufferedReader file1, BufferedReader file2) method.