Question

21.4 in Java How to program 8th Edition

Problem 21.4: Write a generic method selectionSort based on the sort program of Figs. 19.6-19.7. Write a test program that inputs, sorts and outputs and Integer arrayand a Float array. [Hint: Use <T extends Comparable <T>> in the type-parameter section for method selectionSort, so that you can use method compareTo tocompare the objects of the type that T represents.

Solutions

Expert Solution
No answers


Submit Your Answer