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