Question: Write a Java method that repeatedly selects and removes a random entry from an array of ints until the array holds no more entries. You

Write a Java method that repeatedly selects and removes a random entry from an array of ints until the array holds no more entries.

You may assume that the array is completely full of ints when you start.

In developing your answer the only classes/methods/values that you are allowed to call are:

the Random class and its methods

the Math.random() method

the array.length value.

You cannot call any methods from the Arrays class or the String class.You cannot use any additional classes.

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!