java里面int型数据如何转换为String型数据
可以使用Integer类的toString()方法将int型数据转换为String型数据,例如:
int num = 123;
String str = Integer.toString(num);
也可以使用String类的valueOf()方法将int型数据转换为String型数据,例如:
int num = 123;
String str = String.valueOf(num);
原文地址: https://www.cveoy.top/t/topic/hgmu 著作权归作者所有。请勿转载和采集!