继续上图和代码
package com.lyj.sort;
public class ShellSort {
/**
* @param args
*/
public static void main(String[] args) {
int[] array = { 76, 81, 60, 22, 98, 33, 12, 1, 19 };
// 排序前
System.out.print("排序前: ");
for (int i : array) {
System.out.print(i + " ");
}
System.out.println();
// 排序
shellSort(array);
// 排序后
System.out.print("排序后: ");
f......
阅读全文