integer to String :
int i = 42;String str = Integer.toString(i);
String str = "" + i
double to String :
String str = Double.toString(i);
long to String :
String str = Long.toString(l);
float to String :
String str = Float.toString(f);
String to integer :
str = "25";int i = Integer.valueOf(str).intValue();
int i = Integer.parseInt(str);
[ 查看全文 ]