Class DefaultStack<E>


  • public class DefaultStack<E>
    extends java.lang.Object
    • Field Detail

      • elements

        protected E[] elements
      • head

        protected int head
    • Constructor Detail

      • DefaultStack

        public DefaultStack()
    • Method Detail

      • clear

        public void clear()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • push

        public void push​(E expression)
      • pop

        public E pop()
      • peek

        public E peek()
      • replace

        public void replace​(E old,
                            E nevv)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object