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?
            Asked
            
        
        
            Active
            
        
            Viewed 857 times
        
    0
            
            
        - 
                    1do you use excel files or csv? open file in notepad – Iłya Bursov May 30 '14 at 03:25
- 
                    If you're using CSV files, you could use `CSVReader`, a part of OpenCSV: http://opencsv.sourceforge.net/apidocs/au/com/bytecode/opencsv/CSVReader.html – Isaac May 30 '14 at 03:28
- 
                    1For xls files - http://stackoverflow.com/questions/1516144/how-to-read-and-write-excel-file-in-java – Iłya Bursov May 30 '14 at 03:29
1 Answers
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)
 
    