if(column = for(int = <nblanksk++system out print(')/for each heap item /first item in row/preceding blanks /display item system out print(heaparray[jidata)if(++ =currentsizebreak/doneif(++column==itemsperrow/end of rownblanks / /half the blanks itemsperrow * /twice the items column /start over on system out println()/new row else /next item on row for(int = <nblanks* - ++system out print(')/interim blanks /end for system out println("\ "+dots+dots)/dotted bottom line /end displayheap(/public void displayarray(for(int = <maxsizej++system out print(heaparray[jidata ")system out println("")/public void insertat(int indexnode newnodeheaparray[indexnewnode/public void incrementsize(currentsize++//end class heap ///////////////////////////////////////////////////////////////class heapsortapp public static void main(string[argsthrows ioexception