public class StackDemo {
    public static void main(String[] argv) {
	Comparable[] a = new Integer []{1, 2, 3, 12, 18, 23, 64, 87, 90, 93, 100};
	
	StackADT stack1 = new StackADT(20);
	StackADT stack2 = new StackADT(20);
	for (Comparable value : a){
	    stack1.push(value);
	}
	System.out.println(stack1);

	while(!stack1.isEmpty()){
	    stack2.push(stack1.pop());
	}

	System.out.println(stack2);
	
    }
}

