有关于String类型的 null和""和"null"的问题
public static void main(String[] args) {
String s1 = "null";
String s2 = null;
String s3 = "";
System.out.println(s1); //null
System.out.println(s2); //null
System.out.println(s3); //空
String s1s1 = s1+s1;
String s2s2 = s2+s2;
String s3s3 = s3+s3;
System.out.println(s1s1); //nullnull
System.out.println(s2s2); //nullnull
System.out.println(s3s3); //空
String s1s2 = s1+s2;
String s1s3 = s1+s3;
String s2s3 = s2+s3;
System.out.println(s1+s2); //nullnull
System.out.println(s1+s3); //null
System.out.println(s2+s3); //null
System.out.println(s1.equalsIgnoreCase(s2));//false
System.out.println(s1s1.equalsIgnoreCase(s2s2));//true
System.out.println(s1s1.equalsIgnoreCase(s1s2));//true
System.out.println(s2s2.equalsIgnoreCase(s1s2));//true
}