Пример #1
0
 public void push(int item)
 {
     if (item < minimum)
     {
         minimum = item;
     }
     TestDriver.LinkedList.Node t = new TestDriver.LinkedList.Node(item);
     t.next = top;
     top    = t;
 }
Пример #2
0
 public Object pop()
 {
     if (top != null)
     {
         Object item = top.data;
         top = top.next;
         return(item);
     }
     return(null);
 }