Java区分大小写的字符串比较 Java子串 Java检查Palindrome字符串 Java区分大小写的字符串比较 public class Sample{ public static void main(String args[]) { String str = "Hello World"; String anotherString = "hello world"; Object objStr = str; System.out.println( str.equals(anotherString) ); } } Java子串 Java检查Palindrome字符串