Plan to conquer the world

  • 6
"First, I'll complete the tasks, then I'm going to make a lot of money. Then I'll take over the world". We found this written in a modest young man's personal journal. Let's imagine he knows exactly when this will happen: we'll use the keyboard to enter a number (the number of years it will take to achieve his goal) and the name of the hopeful conqueror. Then we'll display an interesting phrase.
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Geoff GreenLevel 9 , Calgary
27 January, 05:20
Make sure you read the description! You must enter the number then the name. Even though it shows name then number right after saying that at the start of the description.
Nickolas JohnsonLevel 3 , St. Louis
18 February, 00:30
Thanks a bunch. It's the little things that seem to get me every fregin time!
Fayçal Ben SassiLevel 8 , Ben Arous
4 October 2019, 22:09
Done, I can't see the result of my code in IntelliJ IDEA though. Could you please telle me how to display my code. Thanks.
Debabrata DasLevel 5 , Bhubaneswar
21 September 2019, 12:14
/* Comment has been deleted */
RomanLevel 41
23 September 2019, 07:44
Posting the solution in the comments is prohibited.
Tauqeer ArifLevel 7 , Jhelum
12 September 2019, 06:53
What the hell is wrong with last statement
RomanLevel 41
13 September 2019, 05:50
If you need help, something isn't right in your code, the server won't accept your solution (even if you are 100% sure that it is correct). Describe your question/issue in the HELP section at
Justin SmithLevel 8
20 August 2019, 01:55
The exercise itself was not difficult, but the page before this explaining the various keyboard input options was not very descriptive. The description of the task itself is also deceiving, as no actual keyboard input is necessary. It should do a better job to describe what the inputs are and why it is presented the way it is. Telling the user to enter the name and number is deceiving.
Vicky MillinshipLevel 4 , Walton le Dale
4 January, 21:31
Not sure I agree. The requirements do not make it necessary for the outputted statement to be anything about Kevin or his plans for world domination, just that the variables for 'name' and 'time' are inputted into the computer and displayed, in that order, in a string. It doesn't work on the website, obviously, but despite it not accepting my program it did work in intelliJ so *shrug*.
JayLevel 17 , Washington
3 July 2019, 15:59
The technicality was pretty silly. However, I'll assume there was a point behind it all :)
KevinLevel 7
26 June 2019, 20:39
Why number first then name? I got stuck when it came to this. Otherwise my code was perfect.
nagabenangLevel 6 , Bekasi
28 June 2019, 08:18
Because of this cryptic condition in the task requirement: "Enter the number and name from the keyboard." So basically it's kind of a **** move from the task maker.
chety clooneyLevel 8 , Istanbul
22 June 2019, 17:13
It is just nonsense when it comes to whitespaces,new lines etc. I just wrote the code but it is not accepted. Can anyone point me the error?
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(;
        System.out.print("Age: ");
        int age = Integer.parseInt(bufferedReader.readLine());
        System.out.print("Name: ");
        String name = bufferedReader.readLine();
        System.out.println(name + " will take over the world in " + age + " years. Mwa-ha-ha!");
chety clooneyLevel 8 , Istanbul
22 June 2019, 17:23
I had to try more than 2 hours for whitespaces... Total gibberish. I wrote all the code but never accepted for just a piece of blank or whatever. Seriously It is just demotivating
RomanLevel 41
24 June 2019, 05:50
System.out.print("Age: ");
System.out.print("Name: ");
are unnecessary The displayed text must fully match the task conditions. Here's an example:
Kevin will take over the world in 8 years. Mwa-ha-ha!
Somdutt DwivediLevel 6 , Allahabad
26 June 2019, 08:56
read number first then name so that it will satisfy task condition
Charan ManishLevel 10 , Hyderabad
16 June 2019, 08:54
I have a problem in above code The last condition was not satisfying plz help me....
RomanLevel 41
18 June 2019, 06:31
Look at the spaces...
Somdutt DwivediLevel 6 , Allahabad
26 June 2019, 08:58
read number first then name it will satisfy all condition in the task
panda@codingLevel 5 , Jalandhar
16 June 2019, 04:14
It says illegal start of expression pointing to the class name