-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWelcomeJava.java
30 lines (23 loc) · 906 Bytes
/
WelcomeJava.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
public class Solution1 {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
System.out.println("Hello, World.");
System.out.print("Hello, Java.");
}
}
/*
Problem Statement 1:Welcome to Java!
Welcome to the world of Java! In this challenge, we practice printing to stdout.
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:
1-Print Hello, World. on the first line.
2-Print Hello, Java. on the second line.
Sample Output
Hello, World.
Hello, Java.
*/