|||||||||中的equals()和运算符“ ==”。 我知道equals()将比较对象的值,\\\'== \\\'运算符将检查变量是否指向相同的内存。 我不明白“ 0”如何比较对象的值,例如: class Test { public Test(int x, float y) { this.x = x; this.y = y; } int x, float y; } Test test1

已邀请:

要回复问题请先登录注册