Class DynamicIntStack


  • public class DynamicIntStack
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int position  
      private int size  
      private int[] stack  
    • Constructor Summary

      Constructors 
      Constructor Description
      DynamicIntStack​(int initialSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCount()  
      int pop()  
      void push​(int i)  
      void reset()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • stack

        private int[] stack
      • size

        private int size
      • position

        private int position
    • Constructor Detail

      • DynamicIntStack

        public DynamicIntStack​(int initialSize)
    • Method Detail

      • reset

        public void reset()
      • pop

        public int pop()
      • push

        public void push​(int i)
      • getCount

        public int getCount()