wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Lowest, Highest,  Average Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Lowest, Highest,  Average" Watch "Lowest, Highest,  Average" New topic

Lowest, Highest, Average

Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195

Please take a look at this and see why I keep getting this error..

This is the error I am getting....
Enter output file name:
Exception in thread "main" java.lang.NumberFormatException: empty String
at java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:9
at java.lang.Double.parseDouble(Double.java:201)
at AverageText.highLowAverage(AverageText.java:79)
at AverageText.main(AverageText.java:26)
Press any key to continue . . .


) ) ) )
Joel McNary

Joined: Aug 20, 2001
Posts: 1821

Does your file have any blank lines?


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Rose Evans
Ranch Hand

Joined: Oct 14, 2004
Posts: 195
You know the weirdest thing is...I sat here and stared at this program, and tried to do different things. I finally made a new txt file and now it works perfectly. I don't know why it wouldn't read the other file, but now it's working. I'm gonna see if I can improve the rest of the code.
Thanks so much for your help.
I agree. Here's the link: http://aspose.com/file-tools
subject: Lowest, Highest, Average