Last active
March 6, 2017 15:26
-
-
Save Yousha/e64e0bd144bc94b464ce8acf9c045111 to your computer and use it in GitHub Desktop.
The optional parameter for Java. (Trick)
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 void myMethod(final Object object, final boolean... enabled) | |
{ | |
// ... | |
if (enabled[0]) | |
{ | |
// top kek | |
} | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment