Assertion: queue's method | /r/SimilarTo | element
Facets:
value: except returns null
type: OTHER
Source sentences:
text: The peek() method is similar to element() except that it returns null if the Queue is empty firstPersonInTheWaitingQueue = waitingQueue.peek(); System.out.println("First Person in the Waiting Queue : " + firstPersonInTheWaitingQueue); } }