Worked example
for (int d = 1; d <= 7; d++) {
String type = switch (d) {
case 6, 7 -> "weekend";
default -> "weekday";
};
System.out.println(d + ": " + type);
}
// 1: weekday ... 5: weekday, 6: weekend, 7: weekend
Days 6 and 7 share the single "weekend" branch; every other day falls to default.