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
Get step-by-step solutions from verified subject matter experts
