Hello World Application
Hello friends, we are going to start with very simple projects. The first one is Hello World Project. This project doesn't do much. It just prints the Hello World! on the screen written by us in JAVA code.
So, first of all make a new project and go to Main.java file.
Now, write the following code in this file.
Main.java :
public class Main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
Output :
C:/Users/Username/Desktop>Hello World!
Go to next project :
How to print Date and Time in JAVA