棧的java實現(基於jdk庫的鏈表)

public interface Stack<E> { int getSize(); boolean isEmpty(); void push(E e); E pop(); E peek(); }   public class LinkedListStack<E> implements Stack<E> { private LinkedList<E> list = new L
相關文章
相關標籤/搜索