public final class QuickSort extends Object
Comparable
interface.Modifier and Type | Method and Description |
---|---|
static <T extends Comparable<T>> |
sort(T[] array)
Sorts and returns the array.
|
public static <T extends Comparable<T>> T[] sort(T[] array)
Comparable
interface.T
- The type of the comparable elements.array
- The array to be sorted.Copyright © 2020. All rights reserved.