核心方法:String.compareTo()和String.compareToIgnoreCase()这是最直接、最常用的方法,用于比较两个字符串的字典序,compareTo(StringanotherString)返回值:负整数:...