public class TestMaxHeap { public static void main(String[] args) { // create array: Integer[] a = new Integer[Integer.parseInt(args[0])]; for (int i=0;i