int和String的相互转换
public class demo {
public static void main(String[] args) {
//int转String
int number = 100;
String s = String.valueOf(100);
System.out.println(s);
System.out.println("-------------");
//String转int
String t = "100";
int n = Integer.parseInt(t);
System.out.println(n);
}
}