Hello in Two Lines
Easyjava
Write a program that prints exactly these two lines:
Hello, World!
I am learning Java.There is no input.
Input: none.
Output: the two lines above.
Example 1
Input
(none)
Output
Hello, World! I am learning Java.
- The program reads no input.
- Match the punctuation and capitalisation exactly.
Hint 1
Use System.out.println twice.
Hint 2
println adds the line break for you.
Two println calls, one per line. No input handling is needed for a program that reads nothing.