inside the c:\ after the prompt for units were displayed
I enter 5 and pressed enter the error message below appeared
exception in thread "main" java util illegal conversion exception is != java.lang
Main Topics
Browse All Topicsthe goal of this progam is to prompt the user for a file name, and then an output name. The input text file has to be in the same folder as the compiled java file. I want the user to first specify a input file than an output file. Than choose a unit price which will be calculated with the integers in the input file than the calculations will appear in the output file like i specified below and this is what the values look like in the input file. And lastly I want the total sales to be calculated.
input file
45
27 118
0
51
0
15
-8
101
56
output file
45 units at $175.26 per unit = $7886.66
27 units at $175.26 per unit = $4731.99
118 units at $175.26 per unit = $20680.56
51 units at $175.26 per unit = $8938.21
15 units at $175.26 per unit = $2628.88
The total sales are $44866.30
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: humanonomicsPosted on 2009-02-26 at 20:51:24ID: 23752782
what exactly the problem you are getting?
is the problem that your program did not calculate the values for 101and 56?