Explanation on for-each loops

Use for-each loops instead or use the collection length inside your for
loop

Useful reading
http://www.javapractices.com/topic/TopicAction.do?Id=196