java.lang.ObjectStackC
public class StackC
Provides a Stack object for storing ints
Constructor Summary | |
---|---|
StackC()
Creates a new, empty Stack object. |
Method Summary | |
---|---|
boolean |
isEmpty()
Returns whether the Stack is empty or not. |
boolean |
isFull()
Returns whether the Stack is full or not. |
int |
pop()
Pops the top number off the stack. |
void |
push(int num)
Pushes the given number onto the stack |
Methods inherited from class |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackC()
Method Detail |
---|
public boolean isEmpty()
public boolean isFull()
public int pop()
public void push(int num)
num
- The numbers to be pushed onto the stack