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