Modifier and Type | Method and Description |
---|---|
T |
QueueADT.dequeue()
Return and remove the next item (from the front) of the queue,
If queue is empty, throw EmptyQueueException
|
T |
QueueADT.element()
Get and do not remove the next item in the queue,
If queue is empty, throw EmptyQueueException
|