Write a Simple Java Program to Print Hello World. It is a simple, basic, and traditional program to start any programming language. It also helps you to understand the basic programming structure of Java.
Simple Java Program to Print Hello World
This simple program prints the hello world.
// Simple Java Programs to Print Hello World public class HelloWorld { public static void main(String[] args) { System.out.println("\n Hello World "); } }

The Java System.out.println statement print the statement inside the double Quotes. So, the following statement prints the message Hello World.
System.out.println("\n Hello World ");
Simple Program to Print Hello World Multiple Times
In this program, we are using the Java For Loop to print the same statement multiple times. You can also use While Loop, or Do While to get the same result.
// Simple Java Program to Print Hello World public class HelloWorld { public static void main(String[] args) { int i; for(i = 0; i <= 5; i++) { System.out.println("\n Hello World "); } } }
