Check out example codes for "lopp array java". It will help you in understanding the concepts better.

Code Example 1

For(<DataType of array/List><Temp variable name>   : <Array/List to be iterated>){
    System.out.println();
//Any other operation can be done with this temp variable.
}

Learn ReactJs, React Native from akashmittal.com