I got a file contains two lines:
aaaaa
bbbbb
I used these lines to read each lines:
    File f=new File("D:\\xxx.dat");
    FileReader fr = new FileReader(f);
    BufferedReader br = new BufferedReader(fr);
    String str;
    String tmpp="";
    while ((str = br.readLine()) != null) {
         if(str=="bbbbb")
         {
         System.out.print(str);
         }
    }
but I got nothing as a result.why?
 
     
     
     
     
     
    