Each

For Each Loops (Iteration)

Introduction: Welcome, this page will teach you how to create a For Each Loop in Java. What is a For Each Loop? A For Loop is very similar to a For Loop within Java except it only requires two arguments and instead of referring to the current value of the loop through the index, we have an actual item. When are For Each Loops used? For Each Loops are used for iterating through a list of values or items and performing an action on each of them individually.