I feel like i dont know even where to start.
The whole scanning part got me confused since the short video speaks about scanner and etc. and the whole written lesson speaks about bufferreader...
Would love to have some assistance in order to understand it properly.
Thanks upfront!
package en.codegym.task.jdk13.task03.task0318;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
How to take over the world
*/
public class Solution {
public static void main(String[] args) throws Exception {
Scanner = new Scanner(System.in);
String name = scanner.nextLine();
int number = scanner.nextInt();
System.out.println(name +" " +"will take over the world in" + number +" "+"years. Mwa-ha-ha!" );
}
}