Question: Answer in Java please. 4. Assume you have implemented ADT stack that includes a void method remove (n) that removes n entries from the top
Answer in Java please.

4. Assume you have implemented ADT stack that includes a void method remove (n) that removes n entries from the top of the stack. [20 points) (a) For this method: (i) Write Javadoc (ii) Write java code for this method (iii) Be sure to handle cases where the stack may not contain n entries Note: You may use the class you created in your previous assignment or a new class . Be sure to provide a meaningful message to the client upon any sort of failure to process the stack in the expected way Extra Credit (5 points) Define a custom Exception class to handle errors
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
