Create a java program with file name of greetingsjava your


You are going to create a very simple Java program, and run it using Eclipse. Following is the sample code.

Note that the name of the following Java program is HelloWorld.java. The spelling of HelloWorld must be exactly the same as to the word next to "public class." Be careful about the upper and lowercase, in Java, uppercase and lowercase does make a difference. And by tradition, the first letter of the class should be in upper case.

public class HelloWorld

{

public static void main(String[] args)

{

System.out.println("Hello World, this is my first Java class");

}

}

Case Assignment

Use the sample program above as a reference and create a Java program with file name of greetings.java. Your program will provide a short introduction about yourself: name, the city you live in, hobbies etc, anything you would like to share. Use both System.out.print and System.out.println methods in the program to demonstrate you understand how to use them.

Assignment Expectations

The program should have no compiling errors.
The program should display the correct result.
Submit the Java file along with the screenshot of the output.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Create a java program with file name of greetingsjava your
Reference No:- TGS02709898

Now Priced at $10 (50% Discount)

Recommended (96%)

Rated (4.8/5)