package lab13;

public class StackTest0 {

    public static void main(String[] args) {
        Stack stack = new Stack();

        stack.push ("Fred");
        stack.push (new Integer(123));
        stack.push (123);       // Actually same as previous line (autoboxing)
        stack.push (new Double(123.0));
        stack.push (123.0);
        stack.push (new java.awt.Color (0,0,0));
        stack.push (new Stack());  // Kind of pathological, but allowed...

        while (!stack.isEmpty()) {
            System.out.println (stack.pop());
        }
    }
}
