鏈表棧的實現以及與數組棧的對比

引入上篇中實現的鏈表類,同時定義一個Stack的接口數組 public class LinkedListStack<E> implements Stack<E> { private LinkedList<E> list; public LinkedListStack() { list = new LinkedList<>(); } @Overr
相關文章
相關標籤/搜索