Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.util
Interface Iterator

    public interface Iterator

An iterator over a collection. Iterator takes the place of Enumeration in the Java collections framework

Author:
  Juan Antonio Brena Moral

Method Summary
`boolean` | `hasNext()`
`Object` | `next()`
`void` | `remove()` Removes from the underlying collection the last element returned by the iterator (optional operation).

Method Detail

### hasNext

    boolean hasNext()

  Returns:
    Returns true if the iteration has more elements.

### next

    Object next()

  Returns:
    Returns the next element in the interation.

### remove

    void remove()

  Removes from the underlying collection the last element returned by the iterator (optional operation).

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD