Can someone please have a look at this as it's becoming incredibly frustrating. What am I missing here ?
public class Solution {
public static void main(String[] args) throws Exception {
// Scanner input = new Scanner(System.in);//
// int number = input.nextInt();
// String name = input.nextLine();
// System.out.println(name + " will take over the world in " + number + " years. Mwa-ha-ha!");
// BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
// String name = input.readLine();
// String years = input.readLine();
// int number = Integer.parseInt(years);
//
// System.out.println(name + " will take over the world in " + number + " years. Mwa-ha-ha!");
}
}
Level 3 task 8 Plan to conquer the world
Resolved
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Misiu
27 July 2020, 10:47useful
In BuuferedReader part - first read a number, then name.
+1