Last active
May 19, 2016 13:01
-
-
Save jcasadella/d68fda03cc4e3b2f88c91fbd95d99bc2 to your computer and use it in GitHub Desktop.
Java Hello World without semicolons using reflection
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 class HelloWorld { | |
public static void main(String[] args) throws Exception { | |
if(System.out.getClass().getMethod("println", String.class).invoke(System.out, "HELLO WORLD!") == null) {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment