Complete the switch
statement, and add the correct keyword at the end to specify some code to run if there is no case match in the switch
statement.
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");
}