You are viewing a single comment's thread. Return to all comments →
The compiler can't read the String variable "s" in this code:
public class Solution {
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = scan.nextInt(); scan.nextLine(); System.out.println("String: " + s); double d = scan.nextDouble(); scan.nextLine(); System.out.println("Double: " + d); String s = scan.nextLine(); System.out.println("Int: " + i); // Write your code here. }
}
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 →
The compiler can't read the String variable "s" in this code:
public class Solution {
}