Generic Stack Array
问题 I have to implement a generic stack, but when I try to build the project I have an error that I can't figure out. Here's the code: Stack.java -> interface package stack; public interface Stack <T> { public boolean isEmpty(); public boolean isFull(); public void push(T x) throws StackFullException; public boolean offer(T x); public T pop() throws StackEmptyException; public T poll(); public T peek() throws StackEmptyException; public T element(); } StackArray.java -> the implementation of the