数组

package Demo03;

public class forDemo06 {
public static void main(String[] args) {
int[] numbers = {10,20,30,40,50};//定义了一个数组
//遍历数组的元素
for (int x:numbers){
System.out.println(x);
}
}
}

posted @ 2026-06-14 16:29  墨洛温酒  阅读(2)  评论(0)    收藏  举报