public class LinkedQueue extends LinkedList
firstNode, lastNode
Constructor and Description |
---|
LinkedQueue() |
Modifier and Type | Method and Description |
---|---|
LinkedNode |
Dequeue()
Removes node from list head.
|
void |
Enqueue(char character)
Adds new node to tail of list.
|
LinkedNode |
headNode()
Getter for queue head node.
|
LinkedNode |
tailNode()
Getter for queue tail node.
|
public LinkedNode headNode()
public LinkedNode tailNode()
public void Enqueue(char character)
character
- Character for node to hold.public LinkedNode Dequeue()