public class IterativeLinkedList.ILLIterator
extends java.lang.Object
Constructor and Description |
---|
ILLIterator() |
Modifier and Type | Method and Description |
---|---|
void |
add(T item)
Add the element to list
|
boolean |
hasNext() |
boolean |
hasPrevious() |
T |
next()
Get the next element
|
T |
previous()
The the previous element that was accessed
|
void |
remove()
Remove the last element accessed
|
public boolean hasNext()
public boolean hasPrevious()
public T next()
public T previous()
public void remove()
public void add(T item)
item
- to add