Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* This is supposed to return if one can sleep in with the following possibilities:
- true & true => true
- true & false => false
- false & true => true
- false & false => true
- */
- public boolean sleepIn(boolean weekday, boolean vacation) {
- return(!weekday || vacation);
- }
Add Comment
Please, Sign In to add comment