数字转字符串String.valueOf()
public class Demo{
public static void main(String[] args){
int i = 100;
String str = String.valueOf(i);
}
}
字符串转数字Integer.parseInt()
public class Demo{
public static void main(String[] args){
String value = "250";
int intValue = Integer.parseInt(value);
}
}