Define a last-in-first-out stack: items are added to the top (push) and taken from the top (pop).
Check whether the stack has no items.
Look at the item on the top of the stack, without removing it.
The item, or null when the stack is empty
Take the item from the top of the stack.
Add an item to the top of the stack.
The item to add
Count the items in the stack.
Define a last-in-first-out stack: items are added to the top (push) and taken from the top (pop).