We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Java Stdin and Stdout II
Java Stdin and Stdout II
Sort by
recency
|
1223 Discussions
|
Please Login in order to post a comment
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = scan.nextInt(); Double d = scan.nextDouble(); scan.nextLine(); String s = scan.nextLine(); // Write your code here.
The solution is:
import java.util.Scanner;
public class Solution {
}
**This is Correct code , passed all test cases. ** import java.util.Scanner;
public class Solution {
}
How this test case getting passed. Im confused can someone explain this.
Compiler Message Success
Input (stdin)
2147483647 235345345345.234534 fsdfsdf sdf
Expected Output
String: fsdfsdf sdf Double: 2.3534534534523453E11 Int: 2147483647
This was my original solution:
I'm not really sure why this doesnt satisfy the test cases, although it prints as expected