I have one list:
List myList = new ArrayList();
To get from this list there are two methods:
1.
Enhanced for loop used iterator only inside it. So both are same.