Loops in Java while () { } for (,, ) { } String[] data = .... for (String current : data) { // in this loop the field "current" points to an entry in the collection }