请参考这篇文章:https://www.cnblogs.com/joshua317/p/14522701.html

 

package com.joshua317;

public class Main {

    public static void main(String[] args) {
        //装箱,自动调用Integer.valueOf(100)
        Integer a = 100;
        //拆箱,自动调用a.intValue()
        int b = a;
        System.out.println(a==b);
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-11-22
  • 2021-07-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-06-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案