定一个基准位,递归左右两边排序. public void fun(){ int arr[] = {2,3,4,5,6,7,822,3,4,5,8,6,5,4,2,1}; //System.out.println(qsort(arr,0,(arr.length)-1)); dofun(arr,0,(arr.length)-1); for(int i = 0 ; i < arr.length ; i ++){ System.out.println(arr[i]); } } private int q…