修改项目目录

This commit is contained in:
2024-10-09 11:06:06 +08:00
parent 028ae17647
commit a3e84dc516
29 changed files with 457 additions and 17 deletions

View File

@@ -0,0 +1,11 @@
package chapter2;
public class Example12 {
public static void main(String[] args) {
int x = 5; // 定义变量x初始值为1
while (x <= 4) { // // 循环条件
System.out.println("x = " + x); // 条件成立打印x的值
x ++; // x进行自增
}
}
}