Create a program that starts with an empty list,

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 4GZ
icon
Related questions
Question
Create a program that starts with an empty list,
prompts the user three times to enter their favorite
game, and then prints out the output using the
pop() method.
Expected Output
What is your favorite game? The Legend
What is your second favorite game? Teen
What is your third favorite game? Donke
One of your favorite games is Donkey Ko
One of your favorite games is Teenage M
One of your favorite games is The Legen
Transcribed Image Text:Create a program that starts with an empty list, prompts the user three times to enter their favorite game, and then prints out the output using the pop() method. Expected Output What is your favorite game? The Legend What is your second favorite game? Teen What is your third favorite game? Donke One of your favorite games is Donkey Ko One of your favorite games is Teenage M One of your favorite games is The Legen
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Lists
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT