You are viewing a single comment's thread. Return to all comments →
Scanner scan = new Scanner(System.in); int i = scan.nextInt(); double d=scan.nextDouble();
// The next two line will solve the problem to print stringline
scan.nextLine(); String s=scan.nextLine(); // Write your code here. System.out.println("String: " + s); System.out.println("Double: " + d); System.out.println("Int: " + i);
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 →
// The next two line will solve the problem to print stringline