Print Hello World Without using a Semicolon in Java
Code:
class Test{
public static void main(String[] args){
if(System.out.printf("Hello World\n")!=null){
}
while(System.out.printf("Hello World\n")==null){
}
}
}
o/p:
Hello World
Hello World
Comments
Post a Comment