Question: Java question Part I Write the program below. You should, for as long as the program is running, prompt the user for a line of
Part I Write the program below. You should, for as long as the program is running, prompt the user for a line of integer. If the user enters the integer, the program should stop (with no additional output). After prompting the user for an integer, you should print out how many times the user has previously entered this Integer Implementtion: You should implement this program using an Array of Integer objects. When the user enters a number, you should append it to the end of the array. To find the count after each input, you must loop through the entire array and count how many times you see the input integer. Have your lab instructor check your work before continuing. Enter some text (-1 to stop):4 You entered [4] 1 time (s) Enter some text (-1 to stop): 6 You entered [6 1 time(s) Enter some text C-1 to stop): 4 You entered [4] 2 time (s). Enter some text (-1 to stop): -1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
