Programming Exercises

graphics/pe_icon.gif

1.1

Modify the program from Example 1.4 to use the PrintableCharStack class, rather than the CharStack class. Utilize the printStackElements() method from the PrintableCharStack class. Is the new program behavior-wise any different from Example 1.4?