我知道他们都给出相同的结果。
String str="";
System.out.println("".equals(str));
System.out.println(str.equals(""));
哪一个有效?
炎炎设计
相关分类