| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public T | |
| public void |
| stack | back to summary |
|---|---|
| private final ArrayList<T> stack | |
| ArrayStack | back to summary |
|---|---|
| public ArrayStack(int initSize) Create
| |
| clear | back to summary |
|---|---|
| public void clear() remove all items in the stack | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Check
| |
| pop | back to summary |
|---|---|
| public T pop() Get the head and remove it from the stack
| |
| push | back to summary |
|---|---|
| public void push(T obj) Add the element to the head
| |