Question: JAVA language In-class Exercise 4: Food The food's name, and type (ie. Meat, vegetable, dairy, etc) Method eatlt (), returns a String message, indicating you

JAVA language

JAVA language In-class Exercise 4: Food The food's name, and type (ie.

In-class Exercise 4: Food The food's name, and type (ie. Meat, vegetable, dairy, etc) Method eatlt (), returns a String message, indicating you just ate the food. Ex. "You just ate the banana." Method denylt(), returns a String message, indicating you won't eat this type of food. EX. "Not eating that! I hate vegetables!" - In your Main class, create at least three instances of your Food class, and add them all to an object array called picnicBasket. Write code to go through each food in your picnic basket, one at a time

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!