public static void main(String[] args) {
		// TODO Auto-generated method stub
		
//		StackList stackList1 = new StackList(-1);
		StackList stackList1 = new StackList();
		int i = 0;
		for (i=0; i<10; i++) {
			stackList1.push(i*i);
			System.out.print(stackList1.peek()+ " "+stackList1.getSize()+"; ");
		}
		System.out.println();
		stackList1.printStackList();
		
		Object obj = stackList1.pop(); 
		while (obj != null) {
			System.out.print(obj+ " "+stackList1.getSize()+"; ");
			obj = stackList1.pop();
		}
		System.out.println();
		
		for (i=0; i<11; i++) {
			System.out.print(stackList1.pop()+ " "+stackList1.getSize()+"; ");
		}
		System.out.println();
		stackList1.printStackList();		
		

	}