int len = 800000; int[] arry= new int[len]; for(int i=0;i<len;i++) { int rod = (int)(Math.random()*10000); arry[i]=rod; } QuickSort qs = new QuickSort(); Calendar cal = Calendar.getInstance(); System.out.println("开始时间"+cal.getTime()); qs.sort(0,arry.length-1, arry); cal = Calendar.getInstance(); System.out.println("结束时间"+cal.getTime()); /* for(int i=0;i<arry.length;i++) {