Welcome To Java! - HackerRank
Welcome To Java! - HackerRank
You have successfully solved Welcome to Java! Share Tweet
You are now 12 points away from the 1st star for your java badge.
Try the next challenge | Try a Random Challenge
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.
System.out.println("Hello, World.");
System.out.println("Hello, Java.");
Input Format
Output Format
Sample Output
Hello, World.
Hello, Java.
1 public class Solution {
2
3 public static void main(String[] args) {
4 /* Enter your code here. Print output to STDOUT. Your class should be named Solution. */
5 System.out.println("Hello, World.");
6 System.out.println("Hello, Java.");
7 }
8 }
9
Line: 7 Col: 6
Upload Code as File Test against custom input Run Code Submit Code
You solved this challenge. Would you like Kudos on your progress! Take the HackerRank
Next Challenge Get Certified
to challenge your friends? Skills Certification test and enrich your profile
Test case 0
Compiler Message
Success
1 Hello, World.
2 Hello, Java.
Contest Calendar | Blog | Scoring | Environment | FAQ | About Us | Support | Careers | Terms Of Service | Privacy Policy | Request a Feature