deletes the top item concode_field_sep int CAPACITY concode_elem_sep int size concode_elem_sep AnyType[] heap concode_field_sep void buildHeap concode_elem_sep void doubleSize concode_elem_sep void insert concode_elem_sep String toString concode_elem_sep void main concode_elem_sep void percolatingDown concode_elem_sep void heapSort
AnyType function ( ) { if ( size == 0 ) throw new RuntimeException ( ) ; AnyType loc0 = heap [ 1 ] ; heap [ 1 ] = heap [ size -- ] ; percolatingDown ( 1 ) ; return loc0 ; }