字符串基础问题
题目一public class Test{ public static void main(String[] args){ String s1 = "abc"; String s2 = s1; String s3 = new String("abc"); String s4 = new String("abc"); String s5 = "abc"; System.out.println(s1==s5); System.out.println(s1==s2); System.out.println(s1.equals(s2));
欢马劈雪