In the ListExecutionTimes program in Figure, the
getIndicesmethod filled an array by inserting each successive new index at a random position in the existing array. Write code for an alternative
getIndicesmethod that returns a similar result by using the zero-parameter add method to populate the
ArrayListand the
shufflemethod from the
Collectionsclass to shuffle it.
Figure ListExecutionTimes program-part A

Figure ListExecutionTimes program-part B

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.