拆箱:把包装类型的对象赋值给基本类型
装箱:直接将基本类型的数据赋值给包装类型
Integer i = new Integer(10);
//把包装类型的对象赋值基本类型
int a = i;
System.out.println(a);
//直接将基本类型的数据赋值给了包装类型
Integer j =10;
拆箱:把包装类型的对象赋值给基本类型
装箱:直接将基本类型的数据赋值给包装类型
Integer i = new Integer(10);
//把包装类型的对象赋值基本类型
int a = i;
System.out.println(a);
//直接将基本类型的数据赋值给了包装类型
Integer j =10;