public abstract E element ()

Retrieves, but does not remove, the head of this queue. This method differs from peek 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