java 有没有办法将 int 转换为 ascii 符号?
你想转换吗int
s to char
s?:
int yourInt = 33;
char ch = (char) yourInt;
System.out.println(yourInt);
System.out.println(ch);
// Output:
// 33
// !
或者你想转换int
s to String
s?
int yourInt = 33;
String str = String.valueOf(yourInt);
或者你说的是什么意思?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)