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(TreeNode treeNode)
Adds new node to list head.
|
public LinkedNode HeadNode()
public void Push(TreeNode treeNode)
treeNode
- TreeNode for node to hold.public LinkedNode Pop()