Int to String 有三种方式:
int num = 5;
1: String str = String.valueOf(num);
2: String str = Integer.toString(num);
3: String str = num + " ";
String to Int 的转换方式:
string str = 100;
Int num = Integer.parseInt(str)
Int to String 有三种方式:
int num = 5;
1: String str = String.valueOf(num);
2: String str = Integer.toString(num);
3: String str = num + " ";
String to Int 的转换方式:
string str = 100;
Int num = Integer.parseInt(str)