Convert from type X to type Y
<br />integer to String :<br />int i = 42;
String str = Integer.toString(i);
or
String str = "" + i<br />double to String :<br />String str = Double.toString(i);<br />long to String :<br />String str = Long.toString(l);<br />float to String :<br />St
原创
2010-08-17 21:55:00 ·
731 阅读 ·
0 评论