publicstaticvoidmain(String[] args){finalint size =10;int[] a =newint[size];// 快速排序for(int i =0; i < size; i ++){
a[i]=(int)(Math.random()*100);}quick_sort(a,0, a.length -1);for(int i : a){System.out.print(i +" ");}System.out.println();//归并排序for(int i =0; i < size; i ++){
a[i]=(int)(Math.random()*100);}merge_sort(a,0, a.length -1);for(int i : a){System.out.print(i +" ");}}