Quick Sort idea: Select the last number of the array (key), which is smaller than its exclusive front (key in the middle) larger than the row behind it, and then the recursive termination condition (array only one number) public class Sort<t extends comparable<t>> { //can be sorted can be compared, so must inherit java.lang.Comparablepublic void Quick (t[] array) {sort (array,0, ARRAY.LENGTH-1);} private void sort (t[] array, int left,int right) { if (left<right) {int p=partition (array,left,right); Sort (array,left,p-1); sort (array,p+1,right);}} private int partition (t[] Array,int left,int right) {int i=left-1;for (int j=left;j<right;j++) {if (Array[j].compareto (Array[right]) <=0) {i++; understand int i=left-1 and return i+1; Detail Details!!! Need to experience swap (ARRAY,I,J);}} Swap (array,i+1,right); insert key into return i+1;} private void Swap (t[] array, int i,int j) {T t=array[i];array[i]=array[j];array[j]=t;}}