Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

NumberFomatException: multiple points

843810Jun 19 2003 — edited Jun 19 2003
I have some code which plots points on a graph. The array string multivalue is populated from parameters read in from lotus notes. The code works fine when integers are used but when one of the values is a decimal e.g. 3.5 then I get the runtime error NumberFormatException: multiple points.

Can someone please explain what this exception means and how to stop it occurring.

Example of part of code:

//Point 2
double p2 = Double.parseDouble(multivalue[1]);
xp2 = 260+(int)(p2*30*0.34202);
yp2 = 260-(int)(p2*30*0.93969);

Cheers,

Matt
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 17 2003
Added on Jun 19 2003
4 comments
314 views