hello world first java program
Creating first Java project
- first you need to install Eclipse IDE – can be downloaded from https://www.eclipse.org
Eclipse will look like below,
2) create a project using Eclipse IDE, and give name as “Hello world”
3) create a package as shown below
4) create a class as below,
5) fill the package name and class name as below,
6) now insert/write the following program , since by default package and class name appears int the code
public static void main (String [] args)
{
System.out.println(“Hellow world………………. “);
System.out.println(“this is my first progrm”);
}
now you see the package name and class name are matching with the left pan tree structure as per below email. Also notice when you execute the results are displayed below.