In this third problem, you will complete the pop() method. This method removes (pops) the top element of the stack. Remember, the stack...
X1368: ArrayStack - pop
In this third problem, you will complete the
pop() method. This method removes (pops) the top
element of the stack. Remember, the stack is
stored in the instance variable (stack) you
created in a previous problem.
Worthy of note, a stack is a LIFO - last in, first out
structure. You always add at one end of the linear
structure and remove from the same end.
You might want to look at the documentation for
ArrayList
to refresh your memory of how to use that class.
Your Answer:
Feedback
Your feedback will appear here when you check your answer.