mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-18 09:15:41 +08:00

Added an if statement to: >The push method to make sure the stack wasn't full. >The pop method to make sure the stack wasn't empty. > The peek method to make sure the stack wasn't empty.