The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

need help with my code!

a sales application that should that sells variety of items it should: capture individual sale information, calculate and display total without and with tax and any discount if applicable. (From time to time the manager provides discounts on sales that go beyond a specific amount).
a. To complete a sale the following information must be captured for each item: Date, ItemCode, Item Name, Unit Cost, Quantity
i have trouble with getting to 2. Provides the details of the highest sale for the day.
3. Display the name and quantity of the item which was sold the most, thus far
4. Provides display of details for all sales made along with the overall total for a particular day and if you had written to file the option to display all Sales for the store.

int menu=(Integer.parseInt(JOptionPane.showInputDialog ("\t Logged in as: Manager" +"\n\n\n(1) \t to make a purchase\n" +"(2) \t Highest Sale for the day \n"
+"(3)\t Item that sold the most \n"
+"(4)\t All Sales for day \n"+"(5)\t Display all Sales for the Store \n"
+"(6)\t Manage discount or GCT \n" +"(0)\tExit \n")));