spring framework iterate

Java
for (String m : myList) {
    myMap.put(m, MyStaticFactory.createObject(m));
}
Source

Also in Java: