62,614
社区成员
发帖
与我相关
我的任务
分享
String str1="";
String str2=null;
if(""==str1)
System.out.println("\"\"==str1 is true!");
if("".equals(str1))
System.out.println("\"\".equals(str1) is true!");
System.out.println("".length());//输出为0
System.out.println(null.length());//这个会报编译错误的