next
Removes and returns the value from the head of the queue.
Return
The value that was at the head of the queue when this method was called.
Throws
If the queue has no next element.
Removes and returns the value from the head of the queue.
The value that was at the head of the queue when this method was called.
If the queue has no next element.