Java 比较字符串1 Java将InputStream转换为String Java 比较字符串2 Java 比较字符串 public class StringCompare1 { public static void main(String[] args) { String n1="tutorials point"; String n2="Tutorials point"; System.out.println(n1.equals(n2)); System.out.println(n1.equalsIgnoreCase(n2)); } } Java将InputStream转换为String Java 比较字符串2