点击运行
public class Main { public static void main(String args[]) { Integer x = 5; // 将 int 转换为 Integer 对象 x = x + 10; // 将 Integer 拆箱为 int System.out.println(x); } }
运行结果 :
正在执行...