java 中字符串与整数的互换

int n = Integer.parseInt("123");//将字符串转化成整形
String s = String.valueOf(int a );//将整形转化为字符串


你可能感兴趣的:(java 中字符串与整数的互换)