public class CharStack extends CharList
Constructor and Description |
---|
CharStack() |
Modifier and Type | Method and Description |
---|---|
CharNode |
headNode()
Getter for stack head node.
|
CharNode |
Pop()
Removes top node from list head.
|
void |
Push(char character)
Adds new node to list head.
|
public CharNode headNode()
public void Push(char character)
character
- Character for node to hold.public CharNode Pop()