re: Daily Challenge #75 - Set Alarm VIEW POST

FULL DISCUSSION
 

Java

public class Employment
{
  private static boolean setAlarm(boolean employed, boolean vacation) {
    return employed && !vacation;
  }

  public static void main(String[] args)
  {
    System.out.println(setAlarm(false, false));
    System.out.println(setAlarm(false, true));
    System.out.println(setAlarm(true, true));
    System.out.println(setAlarm(true, false));
  }
}
code of conduct - report abuse