package com.itheima;
public class integerDemo03 {
public static void main(String[] args) {
//装箱:把基本数据类型转化为对应的包装类类型;
// Integer i = Integer.valueOf(100);
Integer li =100;//Integer.valueOf(100);
//拆箱:把包装类类型转化为对应的基本数据类型;
li+=200;
System.out.println(li);
/*
li=li+200;
li=li.intvalue()+200;//自动拆箱
li=300;//Integer.valueOf(300);
*/
}
}
标签:拆箱,JAVA,200,valueOf,li,Integer,100,装箱
From: https://www.cnblogs.com/cy-xt/p/16862809.html