| Modifier and Type | Field and Description |
|---|---|
protected Node<E> |
NodeStack.top |
| Modifier and Type | Method and Description |
|---|---|
Node<E> |
Node.getNext()
Returns the reference to the next node in the list
|
| Modifier and Type | Method and Description |
|---|---|
void |
Node.setNext(Node<E> next)
Updates the value of the instance variable element
|
| Constructor and Description |
|---|
Node(E element,
Node<E> next)
Creates a node with the given element and next node.
|