import java.util.Scanner; public class Dome1{ public static void main (String []args ){ Scanner input = new Scanner (System.in ); int day =0; System.out.print("请输入1~7整数:"); day = input.nextInt(); if(day==1){ System.out.print("星期一"); } else if(day==2){ System.out.print("星期二"); } else if(day==3){ System.out.print("星期三"); } else if(day==4){ System.out.print("星期四"); }else if(day==5){ System.out.print("星期五"); }else if(day==6){ System.out.print("星期六"); }else if(day==7){ System.out.print("星期日"); } else{ System.out.print("输入整数错误!"); } } }