Question: Write a program that asks the user to enter a specific number, then generates 1 0 0 random integers ( between 1 - 1 0

Write a program that asks the user to enter a specific number, then generates 100 random integers(between 1-100), generates them all and adds them to an ArrayList, and prints the number of occurrences of the specific number, odd numbers, and even numbers to the screen. See the below example (text shown in boldface is supposed to be user input).
Create ArrayList with 100 random integer numbers between 1-100
Print ArrayList
Sort Arraylist
Example Output:
Enter a number to search for: 2
ArrayList with 100 random integer numbers between 1-100:
235679245562213319328813290201156773423168990554532316698434687
9154512415676611537108573567924556221331932541329920115677342316
899055453231669843468791545124156766115371085
The number (2) occurred 7 times in your ArrayList.
Write a program that asks the user to enter a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!