+ 1

what did i do wrong?

It says that there is a main exception or something example input: a banana the output should look like that: is that a banana oh my lordylord (omailordilord) https://code.sololearn.com/cIOSHMqGlxbZ/?ref=app

28th Oct 2021, 7:04 PM
Max
Max - avatar
10 Respuestas
+ 2
Because you use essen.nextLine() twice.
28th Oct 2021, 7:35 PM
Simon Sauter
Simon Sauter - avatar
+ 2
Ah. I found my mistake. With the line you need two inputs. I only gave one.
28th Oct 2021, 7:28 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Can you give an example input and output please? edit: I made some comments in the code. example input: text food https://code.sololearn.com/c2NSC5L5r0ej/?ref=app
28th Oct 2021, 7:09 PM
Lisa
Lisa - avatar
+ 1
Simon Sauter it should work – input is directly outputted
28th Oct 2021, 7:22 PM
Lisa
Lisa - avatar
+ 1
thank you Simon Sauter , i switched a few lines so only the string "ding" is getting mentioned
28th Oct 2021, 7:37 PM
Max
Max - avatar
+ 1
Ah, yes: the Lord's name as it is written in Exodus 3, 13-14: Moses said to God, "Suppose I go to the Israelites and say to them, 'The God of your fathers has sent me to you,' and they ask me, 'What is his name?' Then what shall I tell them?" God said to Moses, "I am lordylord. This is what you are to say to the Israelites: 'lordylord has sent me to you.' " ;)
30th Oct 2021, 3:09 PM
Simon Sauter
Simon Sauter - avatar
+ 1
joshLovesGod Sololearn is not supposed to be a sect and let me believe that there is no god. "🎶Die Gedanken sind frei🎵" You said that if you look in the sky, you'll see god. you also said that that you don't need to explain this, You need to explain it though, i can not see any god there 🤔. Now you said I will go to hell but how do you know that? Did you see a person get grabbed by a devil or a god? Did you see the heaven and the hell? How does it work that if I say that Jesus is the Lord, i get to heaven? Why doesn't he just gave me a happy live? A god would do that probably.
28th Nov 2021, 2:29 PM
Max
Max - avatar
0
Simon Sauter do you know why you need to put two lines in there?
28th Oct 2021, 7:34 PM
Max
Max - avatar
0
joshLovesGod i did that because my friend saw that meme and he said it very very often
30th Oct 2021, 8:37 PM
Max
Max - avatar
- 1
Please don’t use the Lord’s name in vain.
30th Oct 2021, 2:49 PM
joshLovesGod
joshLovesGod - avatar