Java compareTo()方法比较字符串 Java String to Lower Case示例 Java转换为大写 Java compareTo()方法比较字符串 public class Test { public static void main(String args[]) { Integer x = 5; System.out.println(x.compareTo(3)); System.out.println(x.compareTo(5)); System.out.println(x.compareTo(8)); } } Java String to Lower Case示例 Java转换为大写