因为觉得i,j,++,- -的太烦了 只用一个循环,剩下的交给递归 package sort; /** * 插入排序的递归写法 */ public class InsertSort { public static void sortByRecursive(int[] arr, int index)