foreach in android example
Example 1: android foreach
for (Object object : aList) {
// do something with object
}
Example 2: android foreach loop
for (Iterator<Object> i = map.values().iterator(); i.hasNext(); ) {
Object object = i.next();
// do something with object
}