Java: Internal Iterators