Question: Add a method isFu11() to ArrayStackOfStrings (Program 4.3.1) that returns true if the stack size equals the array capacity. Modify push() to throw an exception
Add a method isFu11() to ArrayStackOfStrings (Program 4.3.1) that returns true if the stack size equals the array capacity. Modify push() to throw an exception if it is called when the stack is full.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
