public interface Stack
Modifier and Type | Method and Description |
---|---|
int |
height() |
Object |
pop() |
void |
push(Object o) |
Object |
top() |
int height()
Object pop() throws NoSuchElementException
NoSuchElementException
void push(Object o)
Object top() throws NoSuchElementException
NoSuchElementException