E.g.
for(String str : list1) { ... } for(String str : list2) { ... }
suppose we are sure that list1.size() equals list2
list1.size()
list2
Use basic loop
for(int index=0; index < list1.size() ; index++){ list1.get(index); list2.get(index); }