Int 转换成 String
int i = 123;
String s = "";
//第一种方式
s = String.valueOf(i);
//第二种方式
s = Integer.toString(i);
String 转换成 Int
String s = "123";
int i;
//第一种方式
i = Integer.valueOf(s).intValue();
//第二种方式
i = Integer.parseInt(s);
int i = 123;
String s = "";
//第一种方式
s = String.valueOf(i);
//第二种方式
s = Integer.toString(i);
String 转换成 Int
String s = "123";
int i;
//第一种方式
i = Integer.valueOf(s).intValue();
//第二种方式
i = Integer.parseInt(s);