1. It is not recommended to use ArrayList.remove () when iterating over elements. Totally different thing. How to iterate through Java List? The iterator can be used to iterate through the ArrayList wherein the iterator is the implementation of the Iterator interface. There are 7 ways you can iterate through List. There are different ways to iterate List in Java, traversal of Java List or ArrayList, Vector, LinkedList object to get its values. 1. Iterating, traversing or Looping ArrayList in Java means accessing every object stored in ArrayList and performing some operations like printing them. Initially, we always use for loop to iterate any list but in this example, we will cover the six different ways to iterate any ArrayList. The iterator () method of ArrayList class in Java Collection Framework is used to get an iterator over the elements in this list in proper sequence. To iterate over elements of ArrayList, you can use Java loop statements like Java while loop, Java For Loop or ArrayList forEach. You can also reverse an ArrayList using Java For Loop. The returned iterator is fail-fast. Different Ways to iterate List in Java. In the following program, we have created an ArrayList with some elements, and reversed the ArrayList using for loop statement. forEach() is added as part of java 8 changes. , CTO at SjArc Studios, 6 years of java experience Answered September 21, 2014 Iterate over the hashmap, and then inside that foreach loop, iterate over the arraylist. Here, we use the for loop to go through every ModelClass object inside modeList and call the getName() function, which returns the name.