Created
October 22, 2019 13:28
-
-
Save bastienapp/7fb2434e9de7bcdb3b494b59d401d7c8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Live { | |
public boolean hasLegalAge(int age) { | |
/*if (age > 17) { | |
return true; | |
} | |
return false;*/ | |
return age > 17; | |
} | |
public boolean isEnabled(boolean isChecked, boolean isOff) { | |
/*if (isChecked == true && isOff == false) { | |
return true; | |
} | |
return false;*/ | |
return isChecked && !isOff; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment