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.
For some reason in Java 15 the variables i, d, and s are not provided like they said. You have to include it on your own.
Scanner user = new Scanner(System.in);
int i = 4;
double d = 4.0;
String s = "HackerRank ";
int z;
double dec;
String str;
z = user.nextInt();
dec = user.nextDouble();
user.nextLine();
str = user.nextLine();
System.out.println(i + z);
System.out.println(d + dec);
System.out.println(s + str);
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Data Types
You are viewing a single comment's thread. Return to all comments →
For some reason in Java 15 the variables i, d, and s are not provided like they said. You have to include it on your own.