Write a generic method selectionSort based on the sort program of Figs.. Write a test program that inputs, sorts and outputs an Integer array and a Float array. [Hint: Use <T extends Comparable<T> > in the type-parameter section for method selectionSort, so that you can use method compareTo to compare the objects of the type that T represents.]
Fig. | Class that creates an array filled with random integers. Provides a method to sort the array with selection sort.


Fig. | Testing the selection sort class.


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.