6.11.5. Exercise 5 Write a test program that inputs, sorts, and outputs an Double array and Integer array. Use the gener
Posted: Fri Jul 01, 2022 5:53 am
6.11.5. Exercise 5 Write a test program that inputs, sorts, and outputs an Double array and Integer array. Use the generic swap method, generic displayArray method, and generic selectionSort method. Here is the sample run: Original Double array elements [2.3, 45.6, 4.5, 11.6, 2.0] Double array elements after the selection sort [2.0, 2.3, 4.5, 11.6, 45.6] Original Integer array elements [3, 56, 1, 12, 7, 90, 45, 23] Double array elements after the selection sort [1, 3, 7, 12, 23, 45, 56, 90]