listing heaps continued system out print("enter number of items")size getint()heap theheap new heap(size)for( = <sizej++/fill array with /random nodes int random (int)(java lang math random()* )node newnode new node(random)theheap insertat(jnewnode)theheap incrementsize()system out print("random")theheap displayarray()/display random array for( =size/ - >= --theheap trickledown( )system out print("heaptheheap displayarray()theheap displayheap()/make random array into heap ")/display heap array /display heap for( =size- >= --/remove from heap and /store at array end node biggestnode theheap remove()theheap insertat(jbiggestnode)system out print("sorted")theheap displayarray()/display sorted array /end main(/public static string getstring(throws ioexception inputstreamreader isr new inputstreamreader(system in)bufferedreader br new bufferedreader(isr)string br readline()return //public static int getint(throws ioexception