public static int toInt(String s ) {
int a = 0;
try {
Integer i = new Integer(s);
a = i.intValue();
} catch (Exception e) {
e.printStackTrace();
}
return a;
}
String类型的转int
