Search code examples
javaexcelbufferedreader

reading excel files through Java


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?


Solution

  • 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)