public class StackInt
extends java.lang.Object
| Constructor and Description |
|---|
StackInt(int size)
Construct a new stack.
|
public StackInt(int size)
size - The size of the stack.public boolean isEmpty()
public void push(int i)
i - The value to push onto the stack.public int pop()
public int add()
public int sub()
public int mul()
public int div()
public int size()
public int max(int size)
public int min(int size)
public java.lang.String toString()
toString in class java.lang.Object