把下面的代码if (XYY[0].equals("LEX")) 改成 if (XYY[0]=="LEX")时为什么都会为假
         进不了 System.out.println("9999999999999");
       System.out.println(XYY[0]);
       System.out.println(XYY[1]);
         原因是什以呢?这两种写法上有什么区别?
            public String GetFileContent(String path) {
File file = new File(path);
HelloWrold XY = new HelloWrold();
BufferedReader reader = null;
try {
// System.out.println("以行为单位读取文件内容,一次读一整行:");
reader = new BufferedReader(new FileReader(file));
String tempString = null;
int line = 0;
// 一次读入一行,直到读入null为文件结束
while ((tempString = reader.readLine()) != null) {
// 显示行号
System.out.println("line " + line + ": " + tempString);
String[] XYY = tempString.split(" ");
if (XYY[0].equals("LEX")) {
XY.LEX = XYY[1];
System.out.println("9999999999999");
System.out.println(XYY[0]);
System.out.println(XYY[1]);
} else if (XYY[0].equals("LEY")) {
XY.LEY = XYY[1];
System.out.println(XYY[0]);
System.out.println(XYY[1]);
}else if (XYY[0].equals("REX")) {
XY.REX = XYY[1];
System.out.println(XYY[0]);
System.out.println(XYY[1]);
}else if (XYY[0].equals("REY")) {
XY.REY = XYY[1];
System.out.println(XYY[0]);
System.out.println(XYY[1]);
}

                                     line++;
}
reader.close();
} catch (IOException e) {
e.printStackTrace();
} finally {
if (reader != null) {
try {
reader.close();
} catch (IOException e1) {
}
}
} return null;
}