1、integer转long
Long.valueOf()
2、integer转short
.shortValue()
本文介绍了在Java中如何将Integer类型转换为Long和Short类型的方法,包括使用Long.valueOf()进行Integer到Long的转换,以及调用.shortValue()方法实现Integer到Short的转换。
1、integer转long
Long.valueOf()
2、integer转short
.shortValue()
806

被折叠的 条评论
为什么被折叠?