Question: Using NetBeans, create java project named Fruit Basket. Set the project on a folder 3. Import Scanner and Stacks from the java.util package. 4.
Using NetBeans, create java project named Fruit Basket. Set the project on a folder
3. Import Scanner and Stacks from the java.util package.
4. Create a stack object named "basket."
5. The output shall:
5.1 Ask the user to input the number of fruits s/he would like to catch
5.2 Ask the user to choose a fruit to catch by pressing A for apple, O for orange, M for mango, or G for guava
5.3 Display all the fruits that the basket has
5.4 Ask the user to Enter E to start eating a fruit
5.5 Display the fruits remaining each time E is entered and "No more Fruits" when the basket become empty.
Step by Step Solution
There are 3 Steps involved in it
Heres a Java program that accomplishes the tasks youve outlined using NetBeans java import javautilS... View full answer
Get step-by-step solutions from verified subject matter experts
