You are viewing a single comment's thread. Return to all comments →
import java.util.Scanner; public class Solution{ public static void main(String[] args) { Scanner ref = new Scanner(System.in); int a = ref.nextInt();
double b = ref.nextDouble(); ref.nextLine(); String c = ref.nextLine(); System.out.println("String: "+c); System.out.println("Double: "+b); System.out.println("Int: " +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.Scanner; public class Solution{ public static void main(String[] args) { Scanner ref = new Scanner(System.in); int a = ref.nextInt();
}