Using NetBeans, create java project named Fruit Basket. Set the project on a folder 3. Import
Fantastic news! We've Found the answer you've been seeking!
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. 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.
Related Book For
Posted Date: