package com.wfy.struct;
public class ForDemo05 {
//增强for循环
public static void main(String[] args) {
int[] numbers = {10,20,30,40,50};//定义一个数组
//遍历数组
for (int x:numbers){
System.out.println(x);
}
}
}
增强for循环
最新推荐文章于 2024-07-06 13:51:47 发布