Glossary: Java Beyond the Basics
ArrayDeque
Also written: Deque
A collection that works from both ends, so it can be a queue (offer, poll, peek) or a stack (push, pop). Deque is short for double-ended queue, said like "deck".
Glossary: Java Beyond the Basics
Also written: Deque
A collection that works from both ends, so it can be a queue (offer, poll, peek) or a stack (push, pop). Deque is short for double-ended queue, said like "deck".