关于String的compareTo的理解
suninsky opened this issue · 1 comments
suninsky commented
在两个字符串不一样的时候,返回的是ASCII值的差值,不是返回ASCII值,利用差值来比较字符串的大小
coderbruis commented
非常感谢,你是正确的。现在已经修复:)
suninsky opened this issue · 1 comments
在两个字符串不一样的时候,返回的是ASCII值的差值,不是返回ASCII值,利用差值来比较字符串的大小
非常感谢,你是正确的。现在已经修复:)