Java中增强型for循环的样例和解释
JDK1.5加入的增强for和循环.语法是:for(ElementType element:arrayName){};举个例子:(1) int[] numArray = { 1, 2, 3, 4, 5, 6 }; for (int i : numArray) { System.out.print(i); }//结果会是123456等价于(2) int[...