5- The Iterator Interface

5:26 2 Altaveus 2 Capítols 127 segments

Capítols

  1. 0:03

    In this video, we're going to complete our implementation of the iterator method. So as you can see, this method returns an iterator object. This iterator is actually an interface declared in the java .util package. So here on the documenta…

  2. 5:04

    Now, back to our main class, let's add a couple of items in this list. Let's add A and then B. Here we can iterate over this list using a for each loop. Take a look. We get A and B. Next we're going to talk about the collection interface.