Week 5. Iterating over collections

Collections have an iterator() method which returns an Iterator<E> object. It has the following methods:

  • boolean hasNext()
  • E next()
  • void remove()

0 items under this folder.