DEV Community

Discussion on: Daily Challenge #75 - Set Alarm

Collapse
 
thejessleigh profile image
jess unrein

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));
  }
}