Because printing the stack contents requires popping each item,
one at a time, you must make sure the stack is not empty before
calling pop. Use a while loop.
The output from the TestCharStack class should be:
run:
Pushing A on stack.
Pushing B on stack.
Pushing Y on stack.
Pushing Z on stack.
Popping Z from stack.
Popping Y from stack.
Popping B from stack.
Popping A from stack.
BUILD SUCCESSFUL (total time: 0 seconds)