You are viewing a single comment's thread. Return to all comments →
import java.util.*; class Solution { public static void main(String args[]) { Scanner in =new Scanner(System.in); int a=in.nextInt(); double b=in.nextDouble(); in.nextLine(); String c=in.nextLine(); System.out.println("String: "+c); System.out.println("Double: "+b+"\nInt: "+a); } }
Seems like cookies are disabled on this browser, please enable them to open this website
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
import java.util.*; class Solution { public static void main(String args[]) { Scanner in =new Scanner(System.in); int a=in.nextInt(); double b=in.nextDouble(); in.nextLine(); String c=in.nextLine(); System.out.println("String: "+c); System.out.println("Double: "+b+"\nInt: "+a); } }