@@ -0,0 +1,845 @@
+/*%0A * This snippet shows how to use enhanced for loops.%0A *%0A * For more information, read the following page%0A * https://blogs.oracle.com/CoreJavaTechTips/entry/using_enhanced_for_loops_with%0A *%0A * Usage:%0A * - compile: javac EnhancedForLoops.java%0A * - execute: java EnhancedForLoops%0A */%0A%0Apublic class EnhancedForLoops %7B%0A%0A%09/**%0A%09 * @param args%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09// 1D demo ////////////////////////////////////////////////////////////%0A%09%09%0A%09%09String%5B%5D table = new String%5B%5D%7B%22one%22, %22two%22, %22three%22%7D;%0A%09%09%0A%09%09// for ( Type variable : Iterable ) %7B%0A%09%09for (String elem : table) %7B%0A%09%09%09System.out.println(elem);%0A%09%09%7D%0A%09%09%0A%09%09// 2D demo ////////////////////////////////////////////////////////////%0A%09%09%0A%09%09int tab%5B%5D%5B%5D = %7B%7B1, 2, 3%7D, %7B4, 5, 6%7D%7D;%0A%0A%09%09for(int%5B%5D row : tab) %7B%0A%09%09%09for(int elem : row) %7B%0A%09%09%09%09System.out.println(elem);%0A%09%09%09%7D%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Add some snippets (Java).