61.1k views
0 votes
Write a program that allows a user to input words at the command line. Your program should stop accepting words when the user enters "STOP". Store the words in an ArrayList. The word STOP should not be stored in the list. Next, your program should loop through the list and print out only the words that contain the letter "a". Sample Run: Please enter words, enter STOP to stop the loop. dog zebra cat fish STOP zebra cat

User Apramc
by
8.5k points

1 Answer

2 votes

Answer:

you had this question out since 2018 its 2021 i feel bad now lol

Step-by-step explanation:

User Daskus
by
8.2k points