What are the contents of the stack pile after the following statements execute? Assume that MyStack is a class that implements the interface StackInterface.
StackInterfacepile = new MyStack ();pile.push("Jane");pile.push("Jess");pile.push("Jill");pile.push(pile.pop());pile.push(pile.peek());pile.push("Jim");String name = pile.pop();pile.push(pile.peek());
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.