java newbie programmer, Parsing errors

April 3, 2010 at 08:49:04
Specs: Linux i686
I'm trying to complete a school assignment. The assignment is to use a switch statement to calculate the total retail price of a sale of several quantities of various products with different prices. Each case corresponds to a different product number (1-5) and each case is supposed to read the price of each product through the product number and multiply the price by the quantity sold (the product number and quantity sold both should be given by the user). I've copied an error below and then the corresponding area of text in my code.
The error: cannot find symbol
symbol : variable parseInteger
location: class java.lang.Integer

The Code:
case 5:

Any Ideas? Thanks for any help that is offered!

See More: java newbie programmer, Parsing errors

Report •

April 5, 2010 at 09:52:25
There isn't a function called "Integer.parseInteger". There is a "Integer.parseInt", and that might do what you want.

Report •
Related Solutions

Ask Question