[Java] 整数和字符串转换 →→→→→进入此内容的聊天室

来自 , 2019-10-06, 写在 Java, 查看 152 次.
URL http://www.code666.cn/view/a9b7ba70
  1. String a = String.valueOf(2);   //integer to numeric string
  2. int i = Integer.parseInt(a); //numeric string to an int
  3. //源代码片段来自云代码http://yuncode.net
  4.                        

回复 "整数和字符串转换"

这儿你可以回复上面这条便签

captcha