Can someone explain to me why the Iterator<E> iterator(); method Iterator<E> iterator(); defined in java.util.Collection ? The collection is already expanding java.lang.Iterable ; this method is redundant. Is it for convenience?
java collections
Ilya K.
source share