What are the three ways of traversing an ArrayList collection?

There are three ways to traverse an ArrayList collection:

  1. Iterate using a for loop:
  2. Iterate through the list and perform specific operations on each element.
  3. Traverse using an enhanced for loop:
  4. for each element in the list, perform specific operations.
  5. Iterate through using iterators:
  6. Iterator iterator = list.iterator();
    while (iterator.hasNext()) {
    Object element = iterator.next();
    // Perform specific operations
    }

    All three methods can be used to iterate through an ArrayList collection, the specific choice depending on the actual requirements and personal preference.