import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner scanner = new Scanner(System.in);
int age= scanner.nextInt();
String name=scanner.nextLine();
System.out.print(name+" will take over the world in "+age+" years. Mwa-ha-ha!");
}
pls help
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Revathy S
18 October 2019, 18:47
Thanks.I got it
0
Guadalupe Gagnon
18 October 2019, 14:06
https://stackoverflow.com/questions/34894296/java-scanner-doesnt-read-next-line-returns-empty-string
0