string str="i"与 String str=new String("i")和String s = new String("abc")的解释!!!
string str="i"与 String str=new String(“i”)
String x = "张三";
String y = "张三";
String z = new String("张三");
System.out.println(x == y); // true
System.out.println(x == z); // false
为什么会输出上边的结果呢,String ...
原创
2020-01-28 10:42:53 ·
1260 阅读 ·
0 评论