I imported the scanner, changed the input to my personalized order, etc. It produces the correct output yet doesn't accomplish the final objective??? Why?
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);
String name = scanner.next();
int number = scanner.nextInt();
System.out.print(name + " will take over the world in " + number + " years. Mwa-ha-ha!");
}
}