Last active
December 18, 2015 21:29
-
-
Save WarFox/5847999 to your computer and use it in GitHub Desktop.
Java :: Print "Hello World" without using semicolon (;)
This file contains 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 PrintWithoutSemiColon { | |
public static void main(String[] args) { | |
if (System.out.printf("Hello World!\n") == null) {} | |
/** | |
* This one is given by Salil Joshi, in the following LinkedIn discussion | |
* http://www.linkedin.com/groups/How-print-Hello-World-in-3983267.S.252703117?qid=1ce0f1f0-73f3-4c31-ba37-c27aa8e81b55&trk=group_most_popular-0-b-ttl&goback=%2Egmp_3983267 | |
*/ | |
if (System.out.append("Hello World!\n").equals(null)) {} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment