java使用鏈表實現棧(先進後出)

public class LinkStack <Item> implements Iterable<Item>{ private Node first;//棧頂 private int N;//元素數量 private Node temp;//遍歷對象 public boolean isEmpty(){ return N==0; }
相關文章
相關標籤/搜索