(Implement MyStackusing inheritance) In Listing 1, MyStack is implemented using composition. Define a new stack class that extends ArrayList.
Draw the UML diagram for the classes and then implement MyStack. Write a test program that prompts the user to enter five strings and displays them in reverse order.
LISTING 1 MyStack.java
1 import java.util.ArrayList;
2
3 public class MyStack {
4 private ArrayList
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.