Package stdlib

Class Stack<T>

java.lang.Object
stdlib.Stack<T>

class Stack<T> extends Object
From sedgewick and wayne
  • Field Details

  • Constructor Details

  • Method Details

    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • push

      public void push(T item)
    • pop

      public T pop()
    • pop

      public void pop(int n)
    • peek

      public T peek()