int与string
int i=123;
String stringExample="hi";
stringExample=String.valueOf(i);
i=Integer.parseInt(s);或 i=Integer.valueOf(s).intValue();
string float
f= Float.valueOf(s);
f = new Float(s);
f = Float.parseFloat(s);
int与string
int i=123;
String stringExample="hi";
stringExample=String.valueOf(i);
i=Integer.parseInt(s);或 i=Integer.valueOf(s).intValue();
string float
f= Float.valueOf(s);
f = new Float(s);
f = Float.parseFloat(s);