Question: need java code (Is my number in the array) Use the randomFillArray(int[] inArray) method from your previous assignment to fill an array of 10000 with

need java code

(Is my number in the array)

Use the randomFillArray(int[] inArray) method from your previous assignment to fill an array of 10000 with random numbers.

Write a program that asks the user for a number. Then search the array for that number and count how many times it occurs.

Output the amount of times the number occurs in th. array.

SAMPLE RUN #1: java

Please enter a number between 0 and 2000 : 7 The number 7 is found in the array 27 times.

Would you like to search another number? yes/no yes

Please enter a number between 0 and 2000: 34 The number 34 is found in the array 53 times.

Would you like to search another number? yes/no no

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 Databases Questions!