type StackClass does not take parameters StackClass <Integer> s1 = new StackClass<Integer>(); code example
Example: java stack methods
import java.util.Stack<E>;
Stack<Integer> myStack = new Stack<Integer>();
myStack.push(1);
myStack.pop();
myStack.peek();
myStack.empty(); // True if stack is empty