This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Output errors in  main Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Output errors in  main" Watch "Output errors in  main" New topic

Output errors in main

mike hew

Joined: Oct 26, 2006
Posts: 27
Still trying to figure out line 55 and 104, but the other 2 have me just as lost, or are these reference of those 2 lines?

Big Bank: Monthly Checking Account Activity

----------- Account ----------- Beginning With- Ending Over- Credit Cd
Name Id Type Balance + Deposit - drawal - Fee = Balance draft Advance
651.0Exception in thread "main" java.lang.NumberFormatException: For input string: "Regular"
at sun.misc.FloatingDecimal.readJavaFormatString(
at java.lang.Double.parseDouble(
at CheckingAccountsTest.handleAccount(
at CheckingAccountsTest.main(


Scott Johnson
Ranch Hand

Joined: Aug 24, 2005
Posts: 518

The numbers are references to the code line numbers (not input data line numbers) in the specified class.

The program is passing the word "Regular" to Double.parseDouble() on line 104 of

Obviously it can't get a number out of that word so it's throwing an exception.
[ November 19, 2006: Message edited by: Scott Johnson ]
I agree. Here's the link:
subject: Output errors in main
Similar Threads
Exeception in thread
Not compiling right?
Exception in thread
cannot find symbol
might not have been initialized