Code Java Part 1 Write Java Program Called Create Excel Spreadsheet Create Class Called Fo Q37138484

Code in Java

**Part 1**

Write a Java program called to create an Excel spreadsheet

  1. Create a class called Food to represent a Lunch food item.Fields include name, calories, carbs
  2. In a main method (of a different class), ask the user “How manythings are you going to eat for lunch?”.
  3. Loop through each food item and prompt the user to enter thename, calories, and grams of carbs for that food item. Create aFood object with this data, and store each Food object in anArrayList
  4. Create a method called printLunch(), that will take anArrayList of Food objects as an argument and create an Excelspreadsheet. This method should
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.