I've tried to do it in InteliJ and the program is not printing the output at all, the program is running but shows nothing...:/ What's wrong?
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 scan = new Scanner(System.in);
int number = scan.nextInt();
String name = scan.nextLine();
System.out.println(name + "will take over the world in " + number+" years. Mwa-ha-ha!");//write your code here
}
}