Welcome to Java! HackerRank Solution

Welcome to Java! Hacker Rank Solution 

Hello Friends, How are you? Today I am going to solve the Welcome to Java! HackerRank Java Problem with very easy explanation, which is the first problem of Java on HackerRank. So let's start-

Welcome to Java! Hacker Rank Solution


Table of Content (toc)

Welcome to Java! HackerRank Problem Statement

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 the 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.");(code-box)

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. (code-box)

HackerRank - Welcome to Java! Solution


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 above Problem (Welcome to Java!) is generated by HackeRrank but the Solution is Provided by Code Solution. This tutorial is only for Educational and Learning purposes. Authority if any of the queries regarding this post or website fill the following contact form. 

Thank You!

Post a Comment

1 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.