previous
|
start
|
next
Converting between Strings and Numbers
Convert to number:
int n = Integer.parseInt(str);
double x = Double.parseDouble(x);
Convert to string:
String str = "" + n;
str = Integer.toString(n);
previous
|
start
|
next