package class4_3_Stacks_051; import java.util.TreeSet; public class StackDriver { public static void main(String[] args) { System.out.println("StackDriver.main: starting"); System.out.println("args = [len:" + args.length + "]"); ComposeArrayStack stack; stack = new ComposeArrayStack<>(); stack.push('I'); stack.push(' '); stack.push('s'); stack.push('a'); stack.push('w'); while(!stack.isEmpty()) { // DONE: Pop items and print them as we take them off the stack. System.out.println("stack.pop() = " + stack.pop()); } System.out.println("StackDriver.main: done"); } }