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.
Comments (91)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Sinisa Level 7, Banja Luka, Bosnia and Herzegovina
13 February, 12:16
My code correctly satisfies all given requirements, yet for some reason 'The displayed text must fully match the task conditions' is marked read. The proposed solution does not comply with the requirements though, as it doesn't read data from the user input. So if I want to pass this task, I have to // the System.out.println lines.
Seth Barker Level 5, Eureka Springs, United States
12 January, 00:15
Read the input details on the web IDE before doing the exercise in IntelliJ.
mastere Level 9, Rochester, United States
20 October 2020, 06:04
I actually ended up repeating this 7 times because I forgot to add a space between the number and the word years.
Lu Froz Level 4, Hackensack, United States
20 August 2020, 22:42
Yikes can't believe I did it lol
Constantin Anton Level 6, Coventry, United Kingdom
18 August 2020, 11:58
Hint, input can only be a String.
Elyse Segebart Level 3, Perry, USA
28 July 2020, 18:48
I have the order right, the spaces right, it keeps telling me I have a typo! I have tried using new line so it is formatted like the example. What gives??
Roman Level 41
31 July 2020, 05:55
Please post your question with the attached solution in the section Help.
Jurabek Kuralbaev Level 8, Tashkent, Uzbekistan
26 May 2020, 21:43
Please help
mastere Level 9, Rochester, United States
20 October 2020, 06:06
Refer to level 3 lesson 7 titled: "Keyboard input" if you are unsure of what to do in this task.
Jurabek Kuralbaev Level 8, Tashkent, Uzbekistan
25 May 2020, 23:57
How can I resolve this?
mastere Level 9, Rochester, United States
20 October 2020, 06:06
Refer to level 3 lesson 7 titled: "Keyboard input" if you are unsure of what to do in this task.
KingBiggie Level 7, Bodegraven, Netherlands
24 April 2020, 07:58
In no way it's clear you have to read the number first. There's no reasoning for this order right? The code handles it the same way as far as I can see. It makes the assignment very unrewarding when you finally find that error.
Alex Level 41, Solar System
26 April 2020, 09:10
How is it not clear when we twice say that you need to enter the number and name? Then we also mention that the order of the input matters.
KingBiggie Level 7, Bodegraven, Netherlands
9 May 2020, 14:06
Thanks, I missed that last part about the order mattering a lot (and obviously found out the hard way it does). This once again shows that practice > just reading theory and that this way of learning to code works ;).
Tom Vandermolen Level 4, Redmond, United States
6 June 2020, 23:19
How about saying "enter the number and the name, in that order"? You can then leave out the "the order of the input matters" part. It's much more concise and clearer that way.
mastere Level 9, Rochester, United States
20 October 2020, 06:07
It was mentioned that the order of the input matters and if you look in the input window the number: 8 is before the name: Kevin. I think it is clear enough.
Samantha Level 4, Crofton, United States
5 April 2020, 20:12
when I do name number then name then the 3rd to last requirement is lost it says there is no entered name but when i put it the other way around it says there IS an entered name. heeelllp