public void push(int item) { if (item < minimum) { minimum = item; } TestDriver.LinkedList.Node t = new TestDriver.LinkedList.Node(item); t.next = top; top = t; }
public Object pop() { if (top != null) { Object item = top.data; top = top.next; return(item); } return(null); }