Skip to content

Glossary: Software Design Patterns in Java

ArrayDeque

Also written: Deque

A Java collection that works well as a stack: `push` adds on top and `pop` removes the top. The cart's undo history uses it.

Where the book teaches it

Related terms

Undo stackCommand