You are viewing a single comment's thread. Return to all comments →
public class Solution {
public static void main(String[] args) { double d; Scanner scan = new Scanner(System.in); int i = scan.nextInt(); d=scan.nextDouble(); String s=scan.next(); s+=scan.nextLine(); //scan.nextLine(); // Write your code here. System.out.println("String: " + s); System.out.println("Double: " + d); System.out.println("Int: " + i); }
}
First two case run successfully but after 3 cases failed
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 →
public class Solution {
}
First two case run successfully but after 3 cases failed