如果是2个Integer,==比较的对象是否相等,equals比较的是值是否相等。如果是2个Integer,需要看你比较的哪种场景。 如果是1个Integer和1个int,==和equals是一样的, ...
確定! 回上一頁