equal,和等号的用法..
class Number{
int i;
}
public class Ex_03_Assignment{
public static void main(String[] args) {
Integer n1 = new Integer(48);
Integer n2 = new Integer(48);
//(1) false
System.out.println(n1 == n2);
//(2)true
System.out.println(n1.equals(n2));
//(3)false不明白什么意思....
Number n3 = new Number();
Number n4 = new Number();
n3.i = 30;
n4.i = 30;
System.out.println(n3.equals(n4));
}
}