code: public void clear () {
  		for (int i = 0; i < size; i++)
  			queue[i] = null;
  		size = 0;
  		set.clear();
  	}
docs: Removes all of the elements from this priority queue. The queue will be empty after this call returns.