Take out a piece of paper. We’ll be programming on paper.
Write Java code for the following problem.
Implement the ArrayStack class:
Answer the following questions:
What value should top be initialized to in the ArrayStack constructor? Why?
When do we need to resize the data array?