Welcome to Java! solution

Problem discussion

          Here we will discuss and solve Hackerrank Java practice challenge first basic problem Welcome to Java!

          If you read the Welcome to Java!  problem carefully then you noticed that this isn’t a much hard problem. This problem is to write a simple Java program that displays

Hello, World.
Hello, Java.

          If you don’t know how to print a message in Java program then read Welcome to Java world. If you have read the blog post carefully then try to solve it now. Don’t worry if you failed to solve the problem, just look at the code and try again.

Source code

Before seeing the source code ensure that you have tried hard most!!! 
public class Solution
{
    public static void main(String[] args)
    {
        System.out.println("Hello, World.");
        System.out.println("Hello, Java.");
    }
}

Be with us, stay happy. Please do your precious comment and give an opportunity to improve us. Happy coding.

 

Leave a comment

Website Powered by WordPress.com.

Up ↑

Design a site like this with WordPress.com
Get started