String类型转int类型 int i = Integer.parseInt(String str); int类型转String类型 String s = Integer.toString(int a);