String/int转换
A.String to int
/*
* method 1
*/
int i = Integer.parseInt([String]);
//int i = Integer.parseInt([String], [int radix]);
/*
* method 2
*/
int i = Integer.valueOf([String]).intValue();
B.int to String
String s = String.valueOf([Integer]);
String s = Integer.toString([Integer]);
String s = “”+[Integer];
ps: Double, Folat, Long is as the same way