public final void clear() {for (int i = 0; i <= size; i++) {heap[i] = null;}size = 0;}

public final void clear ( ) { for ( int i = 0 ; i <= size ; i ++ ) { heap [ i ] = null ; } size = 0 ; }
public void Clear(){for (int i = 0; i <= size; i++){heap[i] = default(T);}size = 0;}
