大家好 我是JAVA新手 遇到点问题嘿嘿
public class Test
{
public static void main(String[] args) {
String s4 = "bbb";
String s6 = "b";
String s7 = "bb";
System.out.println(s4 == (s6+s7));
}
}
为什么结果是false呢?
public class Test
{
public static void main(String[] args) {
String s4 = "bbb";
String s6 = "b";
String s7 = "bb";
System.out.println(s4 == (s6+s7));
}
}
为什么结果是false呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货