| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | |
| public T | |
| public boolean | |
| public T | |
| public void |
| clear | back to summary |
|---|---|
| public void clear() Remove all elements from the stack | |
| depth | back to summary |
|---|---|
| public int depth() How many elements are currently on the stack? | |
| getCurrent | back to summary |
|---|---|
| public T getCurrent() The element currently at the top of the stack | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Are there no elements currently in the stack? | |
| pop | back to summary |
|---|---|
| public T pop() Pop (remove and return) the current element off the stack | |
| push | back to summary |
|---|---|
| public void push(T newCurrent) Push the new element on the top of the stack | |