Asked • 08/25/23

The code stubs in your editor declare a Solution class and a main method. Complete the main method by copying the two lines of code below and pasting them inside the body of your main method.

The code stubs in your editor declare a Solution class and a main method. Complete the main method by copying the two lines of code below and pasting them inside the body of your main method.

System.out.println("Hello, World.");
System.out.println("Hello, Java.");

Input Format

There is no input for this challenge.

Output Format

You must print two lines of output:

Print Hello, World. on the first line.
Print Hello, Java. on the second line.

Sample Output

Hello, World.
Hello, Java.

1 Expert Answer

By:

Oswald M. answered • 08/25/23

Tutor
4.9 (68)

Senior Information Technology Specializing in Java

Oswald M.

oswald the lucky tutor
Report

08/25/23

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.