import java.util.Scanner;
class DayOfWeek {
public static void main
(String[] args
) { System.
out.
println("Enter week's day using a number");
Scanner scanner
= new Scanner
(System.
in); int dayOfWeek = scanner.nextInt();
if (dayOfWeek == 1) {
weekTitle = "Monday";
} else if (dayOfWeek == 2) {
weekTitle = "Tuesday";
} else if (dayOfWeek == 3) {
weekTitle = "Wednesday";
} else if (dayOfWeek == 4) {
weekTitle = "Thursday";
} else if (dayOfWeek == 5) {
weekTitle = "Friday";
} else if (dayOfWeek == 6) {
weekTitle = "Saturday";
} else if (dayOfWeek == 7) {
weekTitle = "Sunday";
} else {
weekTitle = "Entered unknown item";
}
System.
out.
println(weekTitle
); scanner.close();
}
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKIGNsYXNzIERheU9mV2VlayB7CglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbihTdHJpbmdbXSBhcmdzKSB7CgkJU3lzdGVtLm91dC5wcmludGxuKCJFbnRlciB3ZWVrJ3MgZGF5IHVzaW5nIGEgbnVtYmVyIik7CgkJCgkJU2Nhbm5lciBzY2FubmVyID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgZGF5T2ZXZWVrID0gc2Nhbm5lci5uZXh0SW50KCk7CgkJU3RyaW5nIHdlZWtUaXRsZTsKCQkKCQlpZiAoZGF5T2ZXZWVrID09IDEpIHsKCQkJd2Vla1RpdGxlID0gIk1vbmRheSI7CgkJfSBlbHNlIGlmIChkYXlPZldlZWsgPT0gMikgewoJCQl3ZWVrVGl0bGUgPSAiVHVlc2RheSI7CgkJfSBlbHNlIGlmIChkYXlPZldlZWsgPT0gMykgewoJCQl3ZWVrVGl0bGUgPSAiV2VkbmVzZGF5IjsKCQl9IGVsc2UgaWYgKGRheU9mV2VlayA9PSA0KSB7CgkJCXdlZWtUaXRsZSA9ICJUaHVyc2RheSI7CgkJfSBlbHNlIGlmIChkYXlPZldlZWsgPT0gNSkgewoJCQl3ZWVrVGl0bGUgPSAiRnJpZGF5Ij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