- The following activities demonstrate these three stack methods:
- The push method is like putting another candy into the dispenser.
- The pop method is like removing a candy from the dispenser.
- The peek method is like opening the dispenser but not removing the candy.