Question: how to enqueue in java?
Answer: enqueue(x) : add an item at the tail. dequeue : remove the item at the head. peek : return the item at the head (without removing it) size : return the number of items in the queue. isEmpty : return whether the queue has no items.