0_0_33868705_28578\Main.java:1: 错误: 需要class, interface或enum
Scanner scanner = new Scanner(System.in);
^
0_0_33868705_28578\Main.java:2: 错误: 需要class, interface或enum
int year = scanner.nextInt();
^
0_0_33868705_28578\Main.java:3: 错误: 需要class, interface或enum
int month = scanner.nextInt();
^
0_0_33868705_28578\Main.java:4: 错误: 需要class, interface或enum
int day = scanner.nextInt();
^
0_0_33868705_28578\Main.java:6: 错误: 需要class, interface或enum
Calendar calendar = Calendar.getInstance();
^
0_0_33868705_28578\Main.java:7: 错误: 需要class, interface或enum
calendar.set(Calendar.YEAR, year);
^
0_0_33868705_28578\Main.java:8: 错误: 需要class, interface或enum
if(month-1 < calendar.getMinimum(Calendar.MONTH) || month-1 > calendar.getActualMaximum(Calendar.MONTH)) {
^
0_0_33868705_28578\Main.java:10: 错误: 需要class, interface或enum
return;
^
0_0_33868705_28578\Main.java:11: 错误: 需要class, interface或enum
}
^
0_0_33868705_28578\Main.java:13: 错误: 需要class, interface或enum
if(day < calendar.getMinimum(Calendar.DATE) || day > calendar.getActualMaximum(Calendar.DATE)) {
^
0_0_33868705_28578\Main.java:15: 错误: 需要class, interface或enum
return;
^
0_0_33868705_28578\Main.java:16: 错误: 需要class, interface或enum
}
^
0_0_33868705_28578\Main.java:19: 错误: 需要class, interface或enum
switch(calendar.get(Calendar.DAY_OF_WEEK)-1){
^
0_0_33868705_28578\Main.java:22: 错误: 需要class, interface或enum
break;
^
0_0_33868705_28578\Main.java:23: 错误: 需要class, interface或enum
case 2:
^
0_0_33868705_28578\Main.java:25: 错误: 需要class, interface或enum
break;
^
0_0_33868705_28578\Main.java:26: 错误: 需要class, interface或enum
case 3:
^
0_0_33868705_28578\Main.java:28: 错误: 需要class, interface或enum
break;
^
0_0_33868705_28578\Main.java:29: 错误: 需要class, interface或enum
case 4:
^
0_0_33868705_28578\Main.java:31: 错误: 需要class, interface或enum
break;
^
0_0_33868705_28578\Main.java:32: 错误: 需要class, interface或enum
case 5:
^
0_0_33868705_28578\Main.java:34: 错误: 需要class, interface或enum
break;
^
0_0_33868705_28578\Main.java:35: 错误: 需要class, interface或enum
case 6:
^
0_0_33868705_28578\Main.java:37: 错误: 需要class, interface或enum
break;
^
0_0_33868705_28578\Main.java:38: 错误: 需要class, interface或enum
case 7:
^
0_0_33868705_28578\Main.java:40: 错误: 需要class, interface或enum
}
^
26 个错误
|