现在分long,Long,int,Integer互相转换,分8种情况

  • a     ,    b
  • long, int                 b=(int)a;
  • long,Integer          b= new Long(a).intValue();
  • Long,int                      b= a.inValue();
  • Long,Integer              b= a.intValue()
  • int, long       b= a
  • int,Long                     b= new Integer(a).LongValue();
  • Integer,long         b= a.longValue()
  • Inter,long                 b= a.longValue();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-08-03
  • 2021-09-05
相关资源
相似解决方案