← Back Home

Java :: Print "Hello World" without using Semicolon (;)

This Gist shows how to print something in Java, without the use of Semicolon (;). The code is self explanatory.

This idea is to use System.out.println() inside the brackets of an if().

if() will evaluate it’s expression without the need for semicolon.


comments powered by Disqus