标签:code 多个 number out stat for demo 语句 java
public class ForDemo01 {
public static void main(String[] args) {
int[] numbers = {1, 2, 3, 4, 5};
for (int num : numbers) {
System.out.println(num);
}
}
}
public class ForDemo02 {
public static void main(String[] args) {
for ( ; ; ) {
}
}
}
初始化步骤可以初始化一个或多个循环控制变量,也可以是空语句
标签:code 多个 number out stat for demo 语句 java
原文地址:https://www.cnblogs.com/unremitting-efforts/p/13540224.html