Check out example codes for "spring iterate". It will help you in understanding the concepts better.

Code Example 1

for (String m : myList) {
    ...
}

Learn ReactJs, React Native from akashmittal.com