compareTo

相等  0

前 > 后 1

前<后 -1

对于 字符串 ,不相等返回首字母ascii码的差值

原文地址:https://www.cnblogs.com/jieyi/p/13385214.html