Question: Problem 1 Warm Up Write a la replication that wil 1) Create an array of 1000 lint elements. 2) Use Random class to initialize the
Problem 1 Warm Up Write a la replication that wil 1) Create an array of 1000 lint elements. 2) Use Random class to initialize the pay elements. Make sure to use random numbers between 0 and so 3) Prompt the user for an integer rumber benen oclusive) and 500 (inclusive) 4) Print the number of times the entered number is repeated in the array. If the entered number does not exist print a message saying that Sample Output 1 Please enter positive nubes 6:500): -34 Please re-entera positive nonber 10:500): 1202 Please re-enter a positive number 101500:47 47 ta repeated 12 timer Sample Output 2: Please enter a positive saber [0:5003: 65 The array does not contains Important Note: Save your work in a le called TestArrayjava
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
