java.util.Stack common operations

This post explains what is java.util.Stack data structure, discusses the most common operations performed on Stack. A diagrammatic representation of how the operations work internally and a code snippet for the same. Prerequisites: Basic knowledge of Java and basic knowledge of data structures. Explanation : java.util.Stack data structure class extends Vector class with operations toContinue reading “java.util.Stack common operations”

Design a site like this with WordPress.com
Get started