Skip to content

Glossary: Data Structures and Algorithms in Java

stack

Also written: ArrayStack, stacks

A last-in, first-out pile where you add and remove at the top only. It suits undo and bracket checking.

Where the book teaches it

Related terms

push, pop, peekFIFO, LIFOcall stackArrayDeque