public class IntListEntry
extends java.lang.Object
| Constructor and Description |
|---|
IntListEntry(int data)
Initializes a new list entry object with the specified data.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getData()
Access the data stored in the list entry
|
IntListEntry |
getNext()
Returns a reference variable that points to the subsequent list entry
(If there is no subsequent entry in the list, returns null).
|
void |
setData(int newData)
Overwrite the data stored in the list entry with a new value
|
void |
setNext(IntListEntry newNext)
Overwrite the reference to the subsequent list entry.
|
public IntListEntry(int data)
data - the initial value stored in this entrypublic int getData()
public void setData(int newData)
newData - the new value to storepublic IntListEntry getNext()
public void setNext(IntListEntry newNext)
newNext - a reference to the new subsequent entry