|
-
Oct 21st, 2002, 09:42 AM
#3
Addicted Member
I have not tried this, as my Java environment is screwed. I am assuming that java is saying that the string for "Price" is not purely numbers. Therefore when you try to parse it, you get an error.
The NumberFormatEXception is thrown because the token "$18.00" is not just a number, it contains characters aswell which it doesn't like.
If you know that the beginning of the price string will be a '$' you could remove it using substring, then parse the resulting string...?
HD.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|