It keeps saying "The displayed text must contain the entered name" and that I made a typo. But it does. When I type in the number and the name into the console, it prints out exactly what it said to print out. Does anyone know what I'm missing?
package com.codegym.task.task03.task0318;
/*
Plan to conquer the world
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scanner = new Scanner(System.in);
int years = scanner.nextInt();
String name = scanner.nextLine();
System.out.println(name + " will take over the world in " + years + " years. Mwa-ha-ha!");
}
}