java Integer变为int型
可以使用intValue()方法将Integer类型转换为int类型:
Integer num = 10;
int result = num.intValue();
或者使用自动拆箱(autoboxing):
Integer num = 10;
int result = num;
原文地址: https://www.cveoy.top/t/topic/hipU 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
可以使用intValue()方法将Integer类型转换为int类型:
Integer num = 10;
int result = num.intValue();
或者使用自动拆箱(autoboxing):
Integer num = 10;
int result = num;
原文地址: https://www.cveoy.top/t/topic/hipU 著作权归作者所有。请勿转载和采集!