listing continued /end trickledown(/public boolean change(int indexint newvalueif(index=currentsizereturn falseint oldvalue heaparray[indexgetkey()/remember old heaparray[indexsetkey(newvalue)/change to new if(oldvalue newvalue/if raisedtrickleup(index)/trickle it up else /if loweredtrickledown(index)/trickle it down return true/end change(/public void displayheap(system out print("heaparray")/array format for(int = <currentsizem++if(heaparray[ !nullsystem out printheaparray[mgetkey(")else system out print"-")system out println()/heap format int nblanks int itemsperrow int column int /current item string dots "system out println(dots+dots)/dotted top line while(currentsize if(column = for(int = <nblanksk++system out print(')/for each heap item /first item in row/preceding blanks /display item system out print(heaparray[jgetkey())