https://www.algolesson.com/2023/12/stack-class-in-java-programming.html
Stack Class in Java Programming.