Skip to content

Instantly share code, notes, and snippets.

@bastienapp
Created October 22, 2019 13:28
Show Gist options
  • Save bastienapp/7fb2434e9de7bcdb3b494b59d401d7c8 to your computer and use it in GitHub Desktop.
Save bastienapp/7fb2434e9de7bcdb3b494b59d401d7c8 to your computer and use it in GitHub Desktop.
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