I guess we can't import Scanner? The below code works just fine in JGrasp and IntelliJ.
Got it, I didnt know the input was at them bottom where it says input... I assumed the input was already part of the check.
import java.util.Scanner;
public class test {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
String name = input.next();
int num = input.nextInt();
System.out.printf("%s will take over the world in %d years. Mwa-ha-ha!", name, num);
}//end main
}//end class
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 input = new Scanner(System.in);
String name = input.next();
int num = input.nextInt();
System.out.printf("%s will take over the world in %d years. Mwa-ha-ha!", name, num);
}
}