Posted: Sun Jun 18, 2006 11:00 am Post subject: (No subject)
it says:
Quote:
Exception in thread "main" java.lang.NumberFormatException: for input string: ""
i do not understand this error and its obvious i don't understand it because otherwise i wouldn't be asking.
Sponsor Sponsor
wtd
Posted: Sun Jun 18, 2006 11:06 am Post subject: (No subject)
code:
Exception in thread "main"
Look at your program, then look at this error. See any words in the above that stand out?
cool dude
Posted: Sun Jun 18, 2006 11:19 am Post subject: (No subject)
wtd wrote:
code:
Exception in thread "main"
Look at your program, then look at this error. See any words in the above that stand out?
i think i'm blind
[Gandalf]
Posted: Sun Jun 18, 2006 12:46 pm Post subject: (No subject)
Come on... "main", main(), do you see a similarity? That means the error must be in the main method, right? What else does the error message tell you? NumberFormatException - something about an exception relating to the format of a number. Next, "for input string: """, something about an empty string, right? So where in your program do you have stuff about strings and numbers? This is how you narrow the problem down... Keep trying.