public class Test{ public static void main(String[] args) { //int转换成Integer Integer in = new Integer(10); //Integer转换成int int i = in.intValue(); //String转换成Integer Integer in1 = new Integer("10"); //Integer转换成String String s = in1.toString(); //String转换成int int i1 = Integer.parseInt("11"); int i2 = Integer.parseInt("10",16); //int转成String String s1 = i1+""; String s2 = Integer.toString(i1); } }