java.lang.ObjectStackE
public class StackE
Provides a Stack object for storing ints
Constructor Summary | |
---|---|
StackE()
Creates a new, empty Stack object. |
Method Summary | |
---|---|
boolean |
isEmpty()
returns true if the stack is Empty |
boolean |
isFull()
returns true if the stack is Full |
int |
pop()
pop a value of the stack |
void |
push(int val)
push an int onto the stack |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackE()
Method Detail |
---|
public boolean isEmpty()
public boolean isFull()
public int pop()
public void push(int val)
val
- value to be pushed onto the stack