import java.util.*; class InsertSort7 // Destructive insertion sort of a random array of integers // Timed but not printed { public static void main(String[] args) throws Exception { Random rand = new Random(); long time1,time2; Scanner input = new Scanner(System.in); System.out.print("Enter the number of numbers: "); int num = input.nextInt(); System.out.print("Enter the highest number: "); int high = input.nextInt(); Integer[] a = new Integer[num]; for(int i=0; i0&&a[i-1].compareTo(n)>0; i--) a[i]=a[i-1]; a[i]=n; } }