Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JAVA JCREATOR Number format exception DUE TOMORROW HELP!!!

Status
Not open for further replies.

Larson

Programmer
Nov 7, 2002
5
CA
I'm trying to finish up a program that is due for a class tomorrow(Nov 8, 2002) and I have no clue what this error means when I go
to execute the files:

Exception in thread "main" java.lang.NumberFormatException:"1200
at java.lang.FloatingDecimal.readJavaFormatString
<FloatingDecimal.java:1173>
at java.lang.Double.parseDouble<Double.java:181>
at calculation.<init><calculation.java:20>
at Assignment.main<Assignment.java, Compile Code>

If anyone can help me out and tell me what this is trying to say because I haven't the slightest clue and It is due for one of my classes tomorrow..PLEASE HELP!!
 
The sring you are passing to the parseDouble method is not a valid double number. I would print that string out before you try to turn it into a number. If it looks ok, try adding the actual decimal point. I'm not sure whether or not it is required when parsing the string.

-gc &quot;I don't look busy because I did it right the first time.&quot;
 
I figured it out, Thanx for your Reply!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top