Ok Guys Im getting correct line, but failing with condition
The displayed text must contain the entered name.
The displayed text must fully match the task conditions.
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 {
Scanner scanner = new Scanner(System.in);
System.out.println("Enter the number and name from the keyboard");
int Age = scanner.nextInt();
String name = scanner.nextLine();
System.out.print(name + " will take over the world in " + Age +" years. Mwa-ha-ha!");
}
}