J
June Moore
Hi,
I'm trying to convert String to double as follows.
String s = "100";
double d = new Integer(s).doubleValue();
--> Works OK.
String s = "100.55";
double d = new Integer(s).doubleValue();
--> I got java.lang.NumberFormatException.
How do I solve this problem?
Thanks,
June.
I'm trying to convert String to double as follows.
String s = "100";
double d = new Integer(s).doubleValue();
--> Works OK.
String s = "100.55";
double d = new Integer(s).doubleValue();
--> I got java.lang.NumberFormatException.
How do I solve this problem?
Thanks,
June.