public class ListIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
Constructor and Description |
---|
ListIterator(T[] d,
int c)
Parameterized constructor for the ListIterator class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns true if there is another item in the list.
|
T |
next()
Returns the next item in the list and advances to the next item.
|
void |
remove()
This is a stub method.
|
public ListIterator(T[] d, int c)
d
- the listc
- the number of items in the listpublic boolean hasNext()
hasNext
in interface java.util.Iterator<T>
public T next()
next
in interface java.util.Iterator<T>
public void remove()
remove
in interface java.util.Iterator<T>