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