// String to int
String str = "10";
int myint = new Integer(str).intValue();// int to String
int myint =10;
String str = myint + "";
String str = "10";
int myint = new Integer(str).intValue();// int to String
int myint =10;
String str = myint + "";
int a=java.lang.Integer.parseInt("b");
String --> Int: Int a = Integer.parseInt("1"); 结果:a = 1;