public
class
Test {
static
void
main(String args[]) {
Integer a1 =
5
;
//自动包装
int
a2 =
new
Integer(
);
//自动解包
System.out.println(
"a1="
+a1+
",a2="
+a2);
}
//源代码片段来自云代码http://yuncode.net