public class IntStack extends Object
Constructor and Description |
---|
IntStack() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEmpty() |
int |
peek() |
int |
pop()
pop the stack
|
void |
push(int i) |
public void push(int i)
i
- public int peek() throws EmptyStackException
EmptyStackException
public int pop() throws EmptyStackException
EmptyStackException
public boolean isEmpty()