(T[] array)
| 30 | } |
| 31 | |
| 32 | public <T extends Comparable<T>> T[] sort(T[] array) { |
| 33 | while (!isSorted(array)) { |
| 34 | nextPermutation(array); |
| 35 | } |
| 36 | return array; |
| 37 | } |
| 38 | |
| 39 | // Driver Program |
| 40 | public static void main(String[] args) { |
no test coverage detected