I am getting an error on verifying but when Irun the program,It's running correctly
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.
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 sc = new Scanner(System.in);
String name = sc.nextLine();
int number = sc.nextInt();
System.out.println(name + " will take over the world in "+ number +" years. Mwa-ha-ha!");
}
}