以下代码:
Integer a=1;
Integer b =1;
Integer aa = new Integer(1);
Integer bb = new Integer(1);
System.out.println(a==b);
System.out.println(aa == bb);
执行结果:
true
false
但是
System.out.println(aa >= bb);
System.out.println(aa <= bb);
结果都是
true
料青山看我应如是
莫回无
ITMISS
相关分类