Say I have a List like:
List list = new ArrayList<>(); list.add(\"a\"); list.add(\"h\"); list.add(\"f\"); list.add(\"s\");
Just iterate the old-fashion way, because you need explicit index handling:
List myList = ... ... int length = myList.size(); for(int i = 0; i < length; i++) { String s = myList.get(i); // add items here, if you want to }