Say I have a List like:
List list = new ArrayList<>(); list.add(\"a\"); list.add(\"h\"); list.add(\"f\"); list.add(\"s\");
Iterate through a copy of the list and add new elements to the original list.
for (String s : new ArrayList(list)) { list.add("u"); }
See How to make a copy of ArrayList object which is type of List?