Write a program that allows a user to input words

Assignment Help Computer Engineering
Reference no: EM132158167

use java

make sure it is works

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.

Reference no: EM132158167

Questions Cloud

Write java gui program to update this file : Use java GUI JFileChooser to locate lab.txt from the file directory and use JTextArea to update the file.
Determine the expected frequency of colour : If 15% of men in a population are colour blind, determine the expected frequency of colour blind women in this same population.
Create an application that models a public library : Use Java to create an application that models a public library, where users can borrow books, put books on hold, etc.
What is the chance that elizabeth is a carrier : Elizabeth's great grandfather was Victoria's son, King Edward VII. He was not a haemophiliac. What is the chance that Elizabeth is a carrier for haemophilia?
Write a program that allows a user to input words : 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".
True breeding lines of mice : Two true breeding lines of mice have different coloured fur: one is solid black; and the other is albino.
Evolution of haemoglobin diseases : Explain how natural selection affects the evolution of haemoglobin diseases such as sickle cell anaemia in humans, and how and why the selective pressures
Population were in hardy-weinberg equilibrium : If the population were in Hardy-Weinberg equilibrium, how many pink individuals would you expect to find in a sample of 50 plants?
Frequency of homozygous or heterozygous individuals : A complete answer will indicate whether violating the assumption is likely to consistently increase the frequency of homozygous or heterozygous individuals

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd