public static void testStack()
    {
        Stack<String> stack = new Stack<String>();
        stack.push("First");
        stack.push("Second");
        stack.push("Third");
        stack.push("Forth");
        stack.push("Fifth");

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