In Display 13.5, we described a sorting method to sort an array of type Comparable[]. In Display 12.8, we described a sorting method that used the quick sort algorithm to sort an array of type double[] into increasing order. Redo the method in Display 12.8 so it applies to an array of type Comparable[]. Also, do a suitable test program.
Sorry the answer is not available at the moment…
If you are able to find the answer, please make sure to post it here. So that your Juniors have smile on their lips and feel happy.
Spread the 'tradition of sharing'.