import java.util.*; //LinkedList in util package
public interface Stack<T>{
static final LinkedList<T> storage = new LinkedList<T>();
public void push(T ele);
public T peek();
public T pop();
public boolean empty();
public String toString();
}
转载于:https://my.oschina.net/hyb007/blog/315476