I have not much java experience, but I'm pretty sure that the for-each loop is used to more easily iterate over arrays. Found a link, that should provide more information http://www.leepoint.net/notes-java/flow/loops/foreach.html Code (markup):