The solution runs correctly, however when I verify the program I receive the following message:
The displayed text must fully match the task conditions.
RECOMMENDATION FROM YOUR MENTOR
Be sure that you haven't mixed up the order of reading in the name and number from the keyboard. Check the conditions.
What am I doing wrong?
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 {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String name = bufferedReader.readLine();
String sYears = bufferedReader.readLine();
System.out.println(name + " will take over the world in " + sYears + " years. Mwa-ha-ha!");
}
}