Day 0: Hello, World.


To complete this challenge, you must save a line of input from stdin to a variable, print Hello, World. on a single line, and finally print the value of your variable on a second line.

Input Format:

A single line of text denoting  inputString (the variable whose contents must be printed).

Output Format:

Print Hello, World. on the first line, and the contents of inputString on the second line.


1) Javascript:

function processData(inputString) {
     // This line of code prints the first line of output
     console.log("Hello, World.");
     // Write the second line of output that prints the contents of 'inputString' here.

2) Java:

public class Solution {
    public static void main(String[] args) {
        // Create a Scanner object to read input from stdin.
        Scanner scan = new Scanner(; 
        // Read a full line of input from stdin and save it to our variable, inputString.
        String inputString = scan.nextLine(); 

        // Close the scanner object, because we've finished reading 
        // all of the input from stdin needed for this challenge.
        // Print a string literal saying "Hello, World." to stdout.
        System.out.println("Hello, World.");
        // TODO: Write a line of code here that prints the contents of inputString to stdout.