public abstract E remove ()

Retrieves and removes the head of this queue. This method differs from poll only in that it throws an exception if this queue is empty.

Returns:  the head of this queue

Exceptions:
NoSuchElementException    if this queue is empty