Queue

https://docs.oracle.com/javase/7/docs/api/java/util/Queue.html

  • collection
  • Iterable
  • "Queue" is an interface, to construct it usually from LinkedList, PriorityQueue...
operation Throws exception Returns special value Return type
Insert add() offer() boolean
Remove remove() poll() E (return the head of this queue
Examine element() peek() E (the head of this queue)

results matching ""

    No results matching ""