public static void main(String[] args) {
		//number of times to execute,max value to add to stack,min value to add to stack
		int n=150,max=2349,min=0;
		
		Stack<Integer> stack = new Stack<Integer>();
		
		//random stack manipulator loop
		for (int count = 0; count < n; count++) {
			int op = (int) (Math.random() * 4);
			int value = (int) (Math.random() * (max-min));
			if (op == 0) {
				System.out.println("Add:\t "+value);
				stack.push(value);
			}else if (op == 1)
				System.out.println("Peek:\t "+stack.peek());
			else if (op == 2) {
				if (stack.peek() != null){
					System.out.println("Pop:\t "+ stack.peek());
					stack.pop();
				}else
					System.out.println("Pop:\t failed [null]");
			}else if (op == 3) {
				System.out.println("Length:\t "+stack.length());
			}else if (op == 4) {
				if (stack.contains(value))
					System.out.println("Contains:\t "+value);
				else
					System.out.println("!Contains:\t "+value);
			}
		}
		
		System.out.println("\n\nThe resulting stack now looks like this:\n"+stack);
		
		
	}