- java.lang.Object
-
- com.ibm.j9ddr.corereaders.tdump.zebedee.util.IntegerStack
-
public final class IntegerStack extends Object
This class implements a simple stack of integers.
-
-
Constructor Summary
Constructors Constructor Description IntegerStack(int size)Create a new stack with the given size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdepth()Return the depth of the stack.intpeek()Return the integer at the top of the stack without popping it.intpop()Pop an integer off the stack.voidpush(int n)Push an integer on the stack.
-