Java Stdin and Stdout II

  • + 0 comments

    import java.util.*;

    public class Solution {

    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int i=in.nextInt();
        double d=in.nextDouble();
        in.nextLine();
        String s=in.nextLine();
        System.out.println("String: "+s +"\n"+"Double: "+d+"\n"+"Int: "+i+"\n");
        in.close();
    }
    

    }