Stack is a Linear Data Structure.Stack can be Implemented easily by using an array in Java .Every Stack has two Main Operations/Methods

a)Push-Used to Insert an Element to the Stack

b)Pop- Used...