for (Iterator<Object> i = map.values().iterator(); i.hasNext(); ) { Object object = i.next(); // do something with object }
for (Object object : aList) { // do something with object }