Java Stdin and Stdout II

  • + 0 comments

    this is the solution import java.util.Scanner;

    public class Solution {

    public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = scan.nextInt(); double d = scan.nextDouble(); scan.nextLine(); String str= scan.nextLine();
    scan.close();

    // Write your code here.
    
    System.out.println("String: " + str);
    System.out.println("Double: " + d);
    System.out.println("Int: " + i);
    

    } }