package java151127;
/*
* for语句的特点
* for语句的灵活掌握
*
*/
public class ForTest {
public static void main(String[] args) {
int x=1;
for (System.out.println("a"); x < 3; System.out.println("c")) {
System.out.println("d");
x++;
}
for (System.out.println("x"); x < 3; System.out.println("c"),x++) {
System.out.println("d");
}
}
}
/*
* for语句的特点
* for语句的灵活掌握
*
*/
public class ForTest {
public static void main(String[] args) {
int x=1;
for (System.out.println("a"); x < 3; System.out.println("c")) {
System.out.println("d");
x++;
}
for (System.out.println("x"); x < 3; System.out.println("c"),x++) {
System.out.println("d");
}
}
}