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);
String name = scan.nextLine();
int number = scan.nextInt();
System.out.println(name + " will take over the world in " + number + " years. Mwa-ha-ha!");
}
}
I don't see what I'm typing wrong
Resolved
Comments (3)
- Popular
- New
- Old
You must be signed in to leave a comment
sergio
10 November 2020, 22:51
/* Comment has been deleted */
0
Misiu
10 November 2020, 23:11
There is one line to display.
The frame of the example can't fit all string so shows it as two lines.
0
Misiu
4 November 2020, 19:39useful
"Enter the number and name" - order of entering data.
+2