In this HackerRank Welcome to Java! the problem we need to print Hello, World on the first line and then Hello, Java on the second line.

HackerRank Welcome to Java! problem solution

 HackerRank Welcome to Java! problem 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.");
    }
}