Advertisement
Advertisement
| 05.08.2008 at 01:44PM PDT, ID: 23387634 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
// from the calling class:
sort.Quick.sort(a);
// the class header
public class Quick extends Sort {
public static <T extends Comparable> void sort(T[] a) {
quicksort(a, 0, a.length - 1);
}
private static <T extends Comparable> void quicksort(T[] a, int lft, int rgt) {
.......
}
}
|