Java Reference
In-Depth Information
Runthisapplicationandyouwillnowseeasingleoutputlineof15integersshownin
descending numerical order from left to right. For example, I observed this output line:
90 86 78 74 65 53 45 44 30 28 18 9 9 7 5
Deque
A
deque
(pronounceddeck)isadouble-endedqueueinwhichelement insertionorre-
moval occurs at its head or tail. Deques can be used as queues or stacks.
Deque
, whose generic type is
Deque<E>
, extends
Queue
, in which the inherited
methods.