import MyStack; class StackTest { public static void main(String[] args) { MyImprovedStack s = new MyImprovedStack(); s.push ("first"); s.push ("second"); System.out.println("peeking " + s.peek()); while (!s.empty()) System.out.println("popping " + s.pop()); } }