import java.util.Scanner;
class Kongzhitai
{
public static void main(String[] args)
{ while (true)
{
Scanner x = new Scanner(System.in);
System.out.println();
System.out.print("请输入整数:");
double week = x.nextDouble();
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("搞么子");
}
}
}
} |