System.out.println("Does the stack contains '9'? " + STACK.search(9)); // Checking for the element 10 System.out.println("Does the stack contains '10'? " + STACK.search(10));
// Checking for the element 11
System.out.println("Does the stack contains '11'? " + STACK.search(11)); } }