1. The most convenient loop for iterating the elements of arrays and collections.This loop has introduced in Java 1.5 version

    http://www.kmemfm.com/?pilotka=forex-trading-malaysia-2017 forex trading malaysia 2017

    http://karatewa.com/?vagu=%D8%B7%D8%B1%D9%8A%D9%82%D8%A9-%D8%A7%D9%84%D8%A8%D9%8A%D8%B9-%D9%88%D8%A7%D9%84%D8%B4%D8%B1%D8%A7%D8%A1-%D9%81%D9%8A-%D8%A7%D9%84%D8%A7%D8%B3%D9%87%D9%85-%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A%D9%87&ca2=f9 طريقة البيع والشراء في الاسهم السعوديه class Test { public static void main(String[] args) { int[] a = { 10, 20, 30, 40, 50 }; // declare an array with 5 elements // use for each to retrieve the elements from array for (int x : a) { System.out.println(x); // x represents each element of the array } } } /* Output: 10 20 30 40 50 */

  2. Program to display the elements of two dimensional int array by using for each loop.

    http://somadesign.com.mx/?komirok=forex-handel forex handel class Test { public static void main(String[] args) { int[][] a = { { 10, 20, 30 }, { 100, 200, 300 } }; for (int[] x : a) { for (int b : x) { System.out.println(b); } } } } /* Output: 10 20 30 100 200 300 */

  3. Using general for loop:

    forex factory zup class Test { public static void main(String[] args) { int[][] a = { { 10, 20, 30 }, { 100, 200, 300 } }; for (int i = 0; i < a.length; i++) { for (int j = 0; j < a[i].length; j++) { System.out.println(a[i][j]); } } } } /* Output: 10 20 30 100 200 300 */

  4. The main limitation of for each loop.It is applicable only for arrays and collections