public class LinkedList extends List
Constructor and Description |
---|
LinkedList() |
Modifier and Type | Method and Description |
---|---|
void |
add(char value)
Appends the value to the end of this list.
|
void |
add(int index,
char value)
Inserts the value at position index.
|
char |
get(int index)
Returns the value at position index.
|
int |
indexOf(char value)
Returns the index of the first occurrence of the value.
|
Iterator |
iterator()
Returns an iterator of the values in this list.
|
char |
remove(int index)
Removes the value at position index.
|
int |
size()
Returns the number of values in this list.
|
public void add(char value)
public void add(int index, char value)
public char remove(int index)
public int indexOf(char value)