package Lianxi01;
import java.util.Scanner;
public class Test05 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("请输入一个整数:");
int i = sc.nextInt();
switch (i){
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("您的输入有误");
}
}
}
08-10
1220
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
11-08
1545
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-02
4514
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)