增强for循环
public class Solution1
{
public static void main(String[] args)
{
int[] R={1,2,3,6,8,9,12};
for(int i:R) {
System.out.println(i);
}
}
}
增强for循环底层原理还是迭代器,public class Solution1
{
public static void main(String[] args)
{
int[] R={1,2,3,6,8,9,12};
for(int i:R) {
System.out.println(i);
}
}
}
增强for循环底层原理还是迭代器,相关推荐