Where is problem?
Be sure that you haven't mixed up the order of reading in the name and number from the keyboard. Check the conditions.
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String name = reader.readLine();
String number = reader.readLine();
System.out.println(name + " " + "will take over the world in " + number + " " + "years. Mwa-ha-ha!");
}
}
package com.codegym.task.task03.task0318;
/*
Plan to conquer the world
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String name = reader.readLine();
String number = reader.readLine();
System.out.println(name + " " + "will take over the world in " + number + " " + "years. Mwa-ha-ha!");
}
}