import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String num = bufferedReader.readLine();
int snum = Integer.parseInt(num);
String name = bufferedReader.readLine();
System.out.print(name +" will take over the world in " + snum +" years. Mwa-ha-ha!");
Passing verification but failing on run.Error converting a string to a number. (invalid format). Why?
Under discussion
Comments (4)
- Popular
- New
- Old
You must be signed in to leave a comment
Sundaram
20 January 2019, 16:31
Thanks for the help. I got it.
0
Hari Backend Developer
8 January 2019, 09:27
problem with the order of inputs you are giving.
0
Ritwik Joshi
7 January 2019, 20:17
Try inputting your data in the field marked in the attached image.
Eg.
Kevin
8
0
Guadalupe Gagnon
5 January 2019, 17:17
Probably because you are entering the name first.
0