Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Java :: Print "Hello World" without using semicolon (;)
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
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