String s1="Hi";
String s2=s1;
System.out.println("操作前:");
System.out.println("s1的内容:"+s1+" s2的内容:"+s2);
System.out.println("s1的hashcode:"+s1.hashCode()+",s2的hashcode:"+s2.hashCode());
s1+=" Loststar";
System.out.println("操作后:");
System.out.println("s1的内容:"+s1+" s2的内容:"+s2);
System.out.println("s1的hashcode:"+s1.hashCode()+",s2的hashcode:"+s2.hashCode());