String a = String.valueOf(2);
//integer to numeric string
int i = Integer.parseInt(a);
//numeric string to an int
String a = String.valueOf(2);
//integer to numeric string
int i = Integer.parseInt(a);
//numeric string to an int
把Strings转换成int和把int转换成String
猜你喜欢
转载自achieve2015.iteye.com/blog/2269803
今日推荐
周排行