Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 BigInteger
Index -> Programming, Java -> Java Help
Goto page Previous  1, 2
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
cool dude




PostPosted: 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
Sponsor
sponsor
wtd




PostPosted: 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




PostPosted: 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 Confused
[Gandalf]




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 2 of 2  [ 19 Posts ]
Goto page Previous  1, 2
Jump to:   


Style:  
Search: