数组排序
package course; public class InsertSort { public static void main(String[] args) { int[] array=new int[]{20,40,90,30,80,70,50}; int tmp; int j; for(int i=1;i=0&&array[j]>tmp;j--){ array[j+1]=array[j]; } array[j+1]=tmp; } System.out.println("\n排序后:"); for(int i=0;i < System.out.print(array[i]+?>