Write a generic method selection sort
[ Hint: Use 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.• We do so by giving a lower bound for the argument.This is the solution java uses for its Arrays.• We need to assure Java that we are passing it a comparator that is defined on any write a generic method selection sort
supertype of T.Just like Bubble Sort and Insertion Sort, the Selection sort is an in-place comparison sort type of algorithm, which means two things.Sort objects in an generic array by passing a generic comparator.The same holds for printArray().The alternative is to overload selectionSort() to accept both generic type for objects and to overload it for each needed primitive.
Write my finance paper, write sort generic method selection a
write a generic method selection sort write a generic method selection sort write a generic method selection sort