您要将 int s 转换为 char s 吗?: int yourInt = 33; char ch = (char) yourInt; System.out.println(yourInt); System.out.println(ch); // Output: // 33 // ! 还是要将 int s 转换为 String s? int yourInt = 33; String str = String.valueOf(yourInt); 或者你的意思是什么? 原文由 Sean Patrick Floyd 发布,翻译遵循 CC BY-SA 2.5 许可协议
您要将
int
s 转换为char
s 吗?:还是要将
int
s 转换为String
s?或者你的意思是什么?