自动装箱

来源:互联网 发布:vlookup跨表引用数据 编辑:程序博客网 时间:2024/06/11 04:36



public static void main(String[]args){
Integer i = new Integer(0);
int j = 0;
System.out.print(i==j);
System.out.print(i.equals(j));
}
以上代码的结果是:
true  true
0 0
原创粉丝点击