class Value {
int i;
public static void main(String[] args) {
Value v1 = new Value();
Value v2 = new Value();
v1.i = v2.i = 100;
66
System.out.println(v1.equals(v2));
}
int i;
}
public static void main(String[] args) {
Value v1 = new Value();
Value v2 = new Value();
v1.i = v2.i = 100;
66
System.out.println(v1.equals(v2));
}
}
为什么最后比较结果为false