标签:val bsp ber cat tac 静态方法 print value strong
String str = "123";
try {
integer b = Integer.valueOf(str)
} catch (NumberFormatException e) {
e.printStackTrace();
}
String转int
String str = "123";
try {
int a = Integer.parseInt(str);
} catch (NumberFormatException e) {
e.printStackTrace();
}
标签:val bsp ber cat tac 静态方法 print value strong
原文地址:https://www.cnblogs.com/candy-yjbai/p/9752963.html