You are viewing a single comment's thread. Return to all comments →
Here is my solution:
import java.util.Scanner; class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = Integer.parseInt(scan.nextLine()); double d = Double.parseDouble(scan.nextLine()); String s = scan.nextLine(); System.out.println("String: " + s); System.out.println("Double: " + d); System.out.println("Int: " + i); } }
Java Stdin and Stdout II
You are viewing a single comment's thread. Return to all comments →
Here is my solution: