package Demo;
public class Demo4 {
public static void main(String[] args) {
String str = "helloworld";
System.out.println(str.equals("Helloworld")); //false
System.out.println(str.equalsIgnoreCase("Helloworld")); //true
}
}
时间: 2024-08-08 23:38:35