public class CharQueue extends CharList
Constructor and Description |
---|
CharQueue() |
Modifier and Type | Method and Description |
---|---|
CharNode |
Dequeue()
Removes node from list head.
|
void |
Enqueue_Singly(char character)
Adds new node to tail of list, by acting like list is
only a singly-linked linked list.
|
void |
Enqueue(char character)
Adds new node to tail of list.
|
CharNode |
headNode()
Getter for queue head node.
|
CharNode |
tailNode()
Getter for queue tail node.
|
public CharNode headNode()
public CharNode tailNode()
public void Enqueue(char character)
character
- Character for node to hold.public void Enqueue_Singly(char character)
character
- Character for node to hold.public CharNode Dequeue()