Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use java make sure it is works 1. Write a program that allows a user to input words at the command line. Your program should

use java

make sure it is works

1. 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 

Note: For this activity, you must use the class name, Main and the method, main.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Understand the key features of recruitment and selection policies

Answered: 1 week ago

Question

Explain the service recovery paradox.

Answered: 1 week ago