Hello in Two Lines
Easyjava
Learn the Concept: First Java ProgramWrite 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.
Submit an attempt to unlock the solution. (Sign in first.)
Related Problems
- Greet the UserEasy · javaSolve Problem
- About MeEasy · javaSolve Problem
- Print the SumEasy · javaSolve Problem