Saturday, February 6, 2016

Welcome to Java! - Hacker Rank Solution

Welcome to the world of Java! Just print "Hello World." and "Hello Java." in two separate lines to complete this challenge.
The code stub in the editor already creates the main function and solution class. All you have to do is copy and paste the following lines inside the main function.

System.out.println("Hello World.");
System.out.println("Hello Java.");
Sample Output
Hello World.
Hello Java. 
----------------------------------------------------------------------------
 

Welcome to Java! - Hacker Rank Solution  

public class Solution {
   
   public static void main(String []argv)
   {
       System.out.println("Hello World.");
System.out.println("Hello Java.");
      //Write your solution here.
   }

}

  Welcome to Java! - Hacker Rank Solution

--------------------------------------------------------------------------- 

1 comment:

  1. I am wanting my blogspot blog to earn some money will you help me plz msg me on manassonawane26@gmail.com

    ReplyDelete

Powered by Blogger.