ArrayStack
Exercise Open the starter code and complete the implementation of ArrayStack
.
Notice the constructor of ArrayStack
does not take in a parameter for the size of the array. So, for now, initialize it to an arbitrary chosen (and sufficiently large) capacity.
Solution
Please check the posted solution.