@@ -0,0 +1,554 @@
+package logic1;%0A%0Apublic class AlarmClockTest %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%0A%09%09AlarmClockTest test = new AlarmClockTest();%0A%09%09System.out.println(test.alarmClock(1, false));%0A%09%09System.out.println(test.alarmClock(5, false));%0A%09%09System.out.println(test.alarmClock(0, false));%0A%09%7D%0A%0A%09public String alarmClock(int day, boolean vacation) %7B%0A%09%09if (vacation) %7B%0A%09%09%09if (day %3E= 1 && day %3C= 5) %7B%0A%09%09%09%09return %2210:00%22;%0A%09%09%09%7D else %7B%0A%09%09%09%09return %22off%22;%0A%09%09%09%7D%0A%09%09%7D else %7B%0A%09%09%09if (day %3E= 1 && day %3C= 5) %7B%0A%09%09%09%09return %227:00%22;%0A%09%09%09%7D else %7B%0A%09%09%09%09return %2210:00%22;%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add AlarmClockTest