Below is the following jsp code for a homework assignment im working on. Im allow four input text fields in which a customer can enter the amount of each fruit they want to buy, a submit button, and a reset button. After a customer placed an order, a page should be generated displaying the order information, including the fruit type, amount to buy, subtotal charge for each type of fruit, and total charge.

Im not sure what wrong but i am not able to get it to run. I m getting errors in this part of the code:
int num=Integer.parseInt(apple);
int num2=Integer.parseInt(banana);
int num3=Integer.parseInt(grape);
int num4=Integer.parseInt(orange);

I would suggest that you go to a programming forum and ask for assistance there.
I'm sure you will have more luck. Considering most helpers here are not proficient in programming.

Good Luck!

Answer this Question

First Name:

School Subject:

Answer:

Related Questions

jsp - can you modify an attribute of the application object after it has been ...
Information Technology - I am pressed for time and need this assignment done by ...
programming - Write a program C++ that allow the shop staff to enter the ...
chemistry - I have the chemical equation: CH4 + NH3 + O2 => HCN + H2O, I have...
Social Studies - I am doing a descriptive writting report on a famous place in ...
computer - this isnt really a school question but i have a question about the ...
Computer Programming - Hello, Any help on the following problem would be greatly...
anthropology - I have a writing assignment due. It is anthropology class. I am ...
science - A less nutritious fish that has taken over the population of other ...
java programming - Create a Sales application that prompts the user for a series...