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
EmptyStackExceptionpublic int pop()
throws EmptyStackException
EmptyStackExceptionpublic boolean isEmpty()