class Compare
{
public static void main(String args[])
{
String S1 = "Daniel";
String S2 = "DANIEL";
String S3 = "Daniel";
String S4 = "daniel";
System.out.println(S1.equals(S2));
System.out.println(S1.equals(S3));
System.out.print(S4.equalsIgnoreCase(S2));
}
}
并且输出是: false true false 当它忽略大小写时,它应该是“true”......对吗?oO