网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

java将包装类Integer数组转为原始类型int数组

时间:2024-11-01 15:52:42

1、在你的项目中引入hutool的jar包

java将包装类Integer数组转为原始类型int数组

3、int[] wrap = ArrayUtil.unWrap(integer1, integer2);//包装类数组转为原始类型数组

java将包装类Integer数组转为原始类型int数组

5、运行程序查看得到的结果

java将包装类Integer数组转为原始类型int数组
© 小知经验