且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

int无法解除引用错误

更新时间:2023-10-27 10:05:52

getEmployeeNumber()显然返回 int

int 是原始类型,而不是对象。

因此,您无法在其上调用 compareTo()等方法。

int is a primitive type, not an object.
Therefore, you cannot call methods like compareTo() on it.