public class Lab10Q1 { public static void main(String... arg) { System.out.println("The Max Heap is "); Heap maxHeap = new Heap(15); maxHeap.insert(5); maxHeap.insert(3); maxHeap.insert(17); maxHeap.insert(10); maxHeap.insert(84); maxHeap.insert(19); maxHeap.insert(6); maxHeap.insert(22); maxHeap.insert(9); maxHeap.maxHeap(); maxHeap.showStructure(); // System.out.println("The max val is " + maxHeap.removeMax()); System.out.println(); // maxHeap.showSubtree(1, 40); } }