+1 as well. On Wed, Dec 23, 2009 at 9:33 AM, Sean Owen <sro...@gmail.com> wrote:
> +1 to that. > > On Dec 23, 2009 5:29 PM, "Benson Margulies" <bimargul...@gmail.com> wrote: > > Current: > > public static void quickSort(Object[] a) { > quickSort1(a, 0, a.length); > } > > proposed: > > public static <T extends Comparable<? super T>> static void > quickSort(T[]) > { > ... > } > > The contract is that the objects implement Comparable. I took the > above from Collections.sort. > >