There is code as following:
String s = new String(\"1\"); s.intern(); String s2 = \"1\"; System.out.println(s == s2); String s3 = new String(\"1\")+new
s.intern() doesn't change the string s. You should have written:
s = s.intern();