参考:https://www.cnblogs.com/sam-cheng/p/6520530.html
一、String转换成int的方法
String str = "10"; Integer it = new Interger(str); int i = it.intValue(); 即:int i = Integer.intValue(string); 二、int转换成String int i = 10; (1)String s = String.valueOf(i); (2)String s = Ingeger.toString(i); (3)String s = "" + i;