Create a package com.grazitti in eclipse and create a class FirstProgram to display “Grazitti Skillstone Welcomes You All For Java Learning”.

0

Assignment: Module 02 - Part 01

Create a package com.grazitti in eclipse and create a class FirstProgram to display “Grazitti Skillstone Welcomes You All For Java Learning”.
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");
    }
}  
  1. Save the file and run the program by right-clicking on the FirstProgram.java file and selecting "Run As" > "Java Application"
  2. 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.

👉Write a  class SumProgram to display the sum of any two variables.Compile and run the code from command line using javac and java command.👈

Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
✨ Updates