Class ArrayStack<T>


  • public class ArrayStack<T>
    extends Object
    General stack implementation.
    • Constructor Detail

      • ArrayStack

        public ArrayStack​(int initSize)
        Create empty stack
        Parameters:
        initSize - - the initial size of the stack
    • Method Detail

      • push

        public void push​(T obj)
      • pop

        public T pop()
      • isEmpty

        public boolean isEmpty()