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

  Imagine that a doubly linked list "header"

Assume that a doubly linked list "header" stores the elements of a priority queue. make use of the function pop(), which deletes the element with the largest value from the list (priority queue).

  Data-communication system

A data-communication system operates at the 28.8 kb/s (typical of the current high-speed telephone modems).

  How many bits are needed for the pointer?

take a fixed partitioning scheme with equal-size partitions of 2^16 bytes and a total main memory size of 2^24 bytes. A process table is maintained that includes a pointer to a partition for each resident process.

  Discuss the four operations of the machine cycle

All of us use the four operations of the machine cycle every day. Think of an activity that you have performed this week and discuss how you used each of the operations of the machine cycle in that activity. Be sure to specify which parts of the a..

  Develop an outline of the project plan for the testing

As part of the disaster recovery planning at a medium-sized business you have been asked to develop a project plan to test the backups of production systems.

  How can the laws of supply and demand be used

Examine the market for tickets for popular sporting events through the supply and demand model.

  Find out how many of each kind of bill to dispense

Write down a program for an automatic teller machine that dispenses money. The user should enter the amount desired (a multiple of ten dollars) and the machine dispenses this amount using the least number of bills. The bills dispensed are 50s, 20s..

  Write a program to gauge the rate of inflation for past year

Write a program to gauge the rate of inflation for the past year. The program asks for the price of an item both one year ago and today.

  Show what is the current size of s

Consider an initially empty stack S has performed a total of 25 push operations, 12 top operations, and 10 pop operations, 3 of which generated EmptyStackExceptions, which were caught and ignored. Show what is the current size of S?

  Write a heap method named incrementpriority

Write a Heap method named incrementPriority that, given the position of an element in the array just described, adds 1 to its value and reorganizes the heap.

  The overall goal of this new system will be to organize

check point new system proposalnbspupon reviewing riordan manufacturing inc.s current and historical sales and

  Discuss what distributive bargaining is

You have been asked to help promote a new bill in your state, to which there is much opposition to this bill. Discuss what distributive bargaining is.

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