0

I am trying to compare two files using BufferedReader but the == operator is not working, I am new to using the BufferedReader any thoughts on why it isn't working?

1 Answers1

1

it could be that the java string == operator checks for more than if the text is the same, as described here:

String comparison with logical operator in Java

what does it do if you use the string equals() method ? http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#equals(java.lang.Object)

Community
  • 1
  • 1
clogwog
  • 343
  • 2
  • 13