Assignment: Module 02 - Part 01
![]() |
Assignment: Module 02 - Part 01 |
03. Create a package com.grazitti in eclipse and create a class FirstProgram to display “Grazitti Skillstone Welcomes You All For Java Learning”.
Output: “ Grazitti Skillstone Welcomes You All For Java Learning”
Open Eclipse and create a new Java project.
Right-click on the src folder in the project and select "New" > "Package".
In the "Name" field, enter "com.grazitti" and click "Finish".
Right-click on the newly created package and select "New" > "Class".
In the "Name" field, enter "FirstProgram" and click "Finish".
In the FirstProgram.java file, add the following code:
package com.grazitti;
public class FirstProgram {
public static void main(String[] args) {
System.out.println("Grazitti Skillstone Welcomes You All For Java Learning");
}
}
- Save the file and run the program by right-clicking on the FirstProgram.java file and selecting "Run As" > "Java Application"
- The program will output "Grazitti Skillstone Welcomes You All For Java Learning"
Note: You need to make sure that the path of JDK is added to the system's environmental variables in order to run the program.