public class LinkedStack extends LinkedList
firstNode, lastNode
Constructor and Description |
---|
LinkedStack() |
Modifier and Type | Method and Description |
---|---|
LinkedNode |
headNode()
Getter for stack head node.
|
LinkedNode |
Pop()
Removes top node from list head.
|
void |
Push(char character)
Adds new node to list head.
|
public LinkedNode headNode()
public void Push(char character)
character
- Character for node to hold.public LinkedNode Pop()