| Modifier and Type | Method and Description |
|---|---|
IntNode |
IntNode.getLink()
Accessor method to get a reference to the next node after this node.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
IntNode.listLength(IntNode head)
Accessor method that returns the number of nodes in the list provided.
|
void |
IntNode.setLink(IntNode newLink)
Modification method to set the link to the next node after this node.
|
static java.lang.String |
IntNode.toString(IntNode head)
Accessor method that returns a string representation of a supplied list.
|
| Constructor and Description |
|---|
IntNode(int initialData,
IntNode initialLink)
Initialize a node with a specified initial data and link to the next
node.
|