@Test public void testPop() { MaxStack maxStack = new MaxStack(); maxStack.push(1); maxStack.push(3); maxStack.push(2); Assert.assertEquals(2, maxStack.pop()); Assert.assertEquals(3, maxStack.pop()); Assert.assertEquals(1, maxStack.pop()); }
public int pop() { maxStack.remove(0); return stack.remove(0); }
MaxStack { public int pop() { maxStack.remove(0); return stack.remove(0); } }
MaxStack { public int pop() { maxStack.remove(0); return stack.remove(0); }  }
MaxStack { public int pop() { maxStack.remove(0); return stack.remove(0); }  int push(int element); int pop(); int max(); int size(); }
MaxStack { public int pop() { maxStack.remove(0); return stack.remove(0); }  int push(int element); int pop(); int max(); int size();  }