For Each Loop in Java Programming

This video tutorial made by the LearningLad Education explains the usage of for each loop along with arrays in java programming.

You will learn what is the use of for each loop, what is the syntax of it, how to use it with arrays, what is the advantage of using for each loop with arrays in detail with examples.




Source code for this video tutorial

package learningJava;

public class Mango {

public static void main(String[] args) {
 
 String names[] = {"shreesha","anjali","ajay","akshay"};
 
 for( String name : names ){
   System.out.println(name);  
 }

}

}