Menu
×
×
正确
int day = 4;
switch (@(3)) {
@(4) 1:
System.out.println("Saturday");
break;
@(4) 2:
System.out.println("Sunday");
@(5);
@(7):
System.out.println("Weekend");
}
int day = 4;
switch (day) {
case 1:
System.out.println("Saturday");
break;
case 2:
System.out.println("Sunday");
break;
default:
System.out.println("Weekend");
}
不正确
点击 此处 重试 正确
下一题 ❯int day = 4; switch (w3exercise_input_no_0) {w3exercise_input_no_11: System.out.println("Saturday"); break;w3exercise_input_no_22: System.out.println("Sunday");w3exercise_input_no_3;w3exercise_input_no_4: System.out.println("Weekend"); } |