包装类对象的比较

  包装类对象不可使用“==”符做比较运算,如果要进行比较运算时,最好使用java类库中的compareTo方法。

原文地址:https://www.cnblogs.com/Hellorxh/p/10874523.html