一、装箱和拆箱
常见包装类:Byte Character Short Integer Long Double Float Boolean
package com.test.packaging;
public class TestPackaging {
public static void main(String[] args) {
int n = 11;
// 装箱
Integer in = new Integer(n);
// in = Integer.valueOf(n);
in =n;
System.out.println(in);
n = in.intValue();
n = in;
}
}