First page Back Continue Last page Overview Graphics
Diff (cont.)
- String line1,line2;
- line1= file1In.readLine();
- line2= file2In.readLine();
while( (line1!= null) && (line2!= null) ){
//compare the 2 lines.
if(! line1.equals(line2) ){
- output.append("line no. " + file1In.getLineNumber()
- + " :\n");
- output.append(args[0] +" "+ line1 + "\n");
- output.append(args[1] +" "+ line2 + "\n");
- noDiff= false;
}
line1= file1In.readLine();
line2= file2In.readLine();
}