Java 比较字符串2 Java 比较字符串1 Java 比较字符串3 Java 比较字符串2 public class StringCompare2 { public static void main(String[] args) { String n1 = "tutorials point"; String n2 = new String("tutorials point"); System.out.println(n1==n2); } } Java 比较字符串1 Java 比较字符串3