Class IntegerStack


  • public class IntegerStack
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IntegerStack​(int capacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEmpty()  
      int peek()  
      int pop()  
      void push​(int value)  
      • Methods inherited from class java.lang.Object

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

      • IntegerStack

        public IntegerStack​(int capacity)
    • Method Detail

      • push

        public void push​(int value)
      • pop

        public int pop()
      • peek

        public int peek()
      • isEmpty

        public boolean isEmpty()