private void answer1() throws IOException{
int num = 1;
String[] days = {"星期一","星期二","星期三","星期四","星期五","星期六","星期日"};
System.out.println("请输入1-7的数字(输入0结束)");
Scanner sc = new Scanner(System.in);
while (num!=0) {//输入0是结束
num = sc.nextInt();
if(1
private void answer1() throws IOException{
int num = 1;
String[] days = {"星期一","星期二","星期三","星期四","星期五","星期六","星期日"};
System.out.println("请输入1-7的数字(输入0结束)");
Scanner sc = new Scanner(System.in);
while (num!=0) {//输入0是结束
num = sc.nextInt();
if(1