HackerRank Java- Welcome to Java

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.

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


Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube