A)
Step 1)
Create a new java project
File->new->Java project->Enter Project Name
Step 2)
Create a userdefined package within “src” directory (given by MyEclipse into which we store all our java files and src means java source code).
Right click on “src directory->new->package->enter the package name
For example: com.prince (reverse domain naming connection is fallowing by industry for package names)
Step 3)
Create a class with main
Right click on package ->new->class->Enter the class name->select the main option.
Step 4)
Write System.out.println and run the application.
Right click on editor->Run As->java Application.
Comments
Post a Comment