public class LinkedIntList extends Object
Constructor and Description |
---|
LinkedIntList()
Creates a new empty LinkedIntList
|
Modifier and Type | Method and Description |
---|---|
void |
add(int value)
Appends value to the end of the LinkedIntList.
|
int |
get(int index)
Returns the data at index.
|
void |
set(int index,
int value)
Sets the data at index to value.
|
int |
size()
Returns the size of the LinkedIntList
|
String |
toString()
Constructs a String representation of the LinkedIntList.
|
public String toString()
public void add(int value)
public int size()
public int get(int index)
public void set(int index, int value)