修改项目目录

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,33 @@
package chapter2;
public class Example11 {
public static void main(String[] args) {
int week = 1;
switch (week) {
case 1:
System.out.println("星期一");
break;
case 2:
System.out.println("星期二");
break;
case 3:
System.out.println("星期三");
break;
case 4:
System.out.println("星期四");
break;
case 5:
System.out.println("星期五");
break;
case 6:
System.out.println("星期六");
break;
case 7:
System.out.println("星期日");
break;
default:
System.out.println("数值错误");
}
}
}