Software/JAVA
Converting a String to int/double/float
잠이보약
2013. 12. 8. 00:12
반응형
The
following code snapshots :
String to int:
int i = Integer.valueOf( year ).intValue()
String to double:
int j = Double.valueOf( year ).doubleValue()
String to float:
int k = Float.valueOf( year ).floatValue()
반응형