100 Days of Java challenges
Day 22: Stack
Write a program that performs the following tasks:
- Initialise a Stack of String values and push items to it
- Remove the top element from the Stack
- Print the top element of the Stack without removing from it
- Check if a value exists in the Stack
- Print the number of values(size) in the Stack
- Remove all values from the Stack
Day 22 - Stack
Write a program that performs the following tasks:
- Initialise a Stack of String values and push items to it
- Remove the top element from the Stack
- Print the top element of the Stack without removing from it
- Check if a value exists in the Stack
- Print the number of values(size) in the Stack
- Remove all values from the Stack
Community|Blog|Youtube|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024