What is the advantage of using an Iterator compared to the get(index) method?
You can navigate or access a List by using the get(index) method or an Iterator. Sometimes the get(index) method is your only option, and sometimes it’s slightly faster than an Iterator. Other times, however, it can be much, much slower than an Iterator. For example, a LinkedList is a classic example. This class has a get(index) method but it is very slow. Well, it’s not that bad if the list is short, or if you’re looking for an item that is close to the beginning or end. But if you need to access the List frequently, you will see a big difference.