Last active
July 8, 2020 11:43
-
-
Save nunomazer/4cbf4e1f397777ff87af4d83efc70c39 to your computer and use it in GitHub Desktop.
Boa prática com IF-ELSE
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
| public boolean myFunction() { | |
| boolean result = someObject.someMethod(); | |
| if (result) { | |
| ... some code ... | |
| return true; | |
| } | |
| ... log error maybe ... | |
| return false | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment