Question: 3) Write a program that populates a java.util.Arraylist variable with 10 random integers in [1, 20), asks the user to provide a value, and counts
3) Write a program that populates a java.util.Arraylist variable with 10 random integers in [1, 20), asks the user to provide a value, and counts how many numbers are equal to the value entered by the user. 4) Write a program that populates a java.util.Arraylist variable with 20 random integers in [1, 100] and prints the location of the smallest (the minimum) integer. Note: Exercises 3 and 4 are similar to Exercises 1 and 2 in Week 8 lab, respectively. On Week 8 you used an array to store the values and this week you will be using a java.util.Arraylist variable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
