In this HackerRank Java Stdin and Stdout II problem we need to read an integer, a double, and a string from stdin and then print all the values in a separate line.

HackerRank Java Stdin and Stdout II problem solution

HackerRank Java Stdin and Stdout II problem solution

import java.util.Scanner;

public class Solution {

    public static void main(String[] args) {
            Scanner sc=new Scanner(System.in);
            int x=sc.nextInt();
            double y=sc.nextDouble();
            sc.nextLine();
            String s=sc.nextLine();


            System.out.println("String: "+s);
            System.out.println("Double: "+y);
            System.out.println("Int: "+x);
    }
}