Welcome to Java! - Hacker Rank Solution





Problem


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.



Solution :-


1
2
3
4
5
6
7
8
9
public class Solution 
{
    public static void main(String[] args) 
    {
        /* Enter your code here. Print output to STDOUT. Your class should be named Solution. */
        System.out.println("Hello, World.");
        System.out.println("Hello, Java.");
    }
}




Disclaimer :-
the hole problem statement are given by hackerrank.com but the solution are generated by the codeworld19 authority if any of the query regarding this post or website fill the following contact form thank you.

Next Post Previous Post
1 Comments
  • Unknown
    Unknown Monday, November 16, 2020

    NOT RUN

Add Comment
comment url