@Test public void sortString() { String[] sortArray = new String[]{"a","b","c","d","e","f","c","f","h"}; new QuickSort().sort(sortArray); String[] resultArray = new String[]{"a","b","c","c","d","e","f","f","h"}; assertEquals("111",sortArray,resultArray); }
public void sort(Comparable[] a) { StdRandom.shuffle(a); sort(a, 0, a.length - 1); }
QuickSort { public void sort(Comparable[] a) { StdRandom.shuffle(a); sort(a, 0, a.length - 1); } }
QuickSort { public void sort(Comparable[] a) { StdRandom.shuffle(a); sort(a, 0, a.length - 1); }  }
QuickSort { public void sort(Comparable[] a) { StdRandom.shuffle(a); sort(a, 0, a.length - 1); }  void sort(Comparable[] a); void sort(Comparable[] a, int low, int high); int partition(Comparable [] a,int low, int high); static void main(String[] args); }
QuickSort { public void sort(Comparable[] a) { StdRandom.shuffle(a); sort(a, 0, a.length - 1); }  void sort(Comparable[] a); void sort(Comparable[] a, int low, int high); int partition(Comparable [] a,int low, int high); static void main(String[] args);  }