Where is the error in this code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Where is the error in this code?

https://code.sololearn.com/cnyhs8AjivdS/?ref=app I can't find what's wrong with this java code, any help please? I'm still a beginner in java so it maybe a silly one 😅. Thanks

7th Dec 2017, 10:54 AM
Mohammad Eid
Mohammad Eid - avatar
24 Answers
+ 9
don't worry about it. :) they don't do anything bad to you. I know it is annoying. But in reality they have no effect on your profile @Mohamad: you can remove your down vote by clicking down again on the answer
7th Dec 2017, 11:21 AM
jay
jay - avatar
+ 7
try print instead of printIn ( or use println (L not I) )
7th Dec 2017, 11:05 AM
jay
jay - avatar
+ 7
Not sure, I am upvoting them :)
7th Dec 2017, 11:16 AM
jay
jay - avatar
+ 5
I got a down vote in my 1st answer, which I guess I didn't deserve. I know there are people who sometimes down vote me, but I didn't deserve one in that answer
7th Dec 2017, 11:19 AM
DAB
DAB - avatar
+ 3
That's because of the display font. In a monospace font, uppercase i & lowercase L are displayed differently. But in other font families, it's tough to differentiate them. So you saw println with l for learn, not with I for idea
7th Dec 2017, 11:14 AM
DAB
DAB - avatar
+ 3
Why am I getting down votes? I guess my answer is appropriate
7th Dec 2017, 11:15 AM
DAB
DAB - avatar
+ 2
don't worry about anything you just a beginner so u learn deeply and then develop ur code we r supporting u
7th Dec 2017, 7:43 PM
Pradheepviki😎😀
Pradheepviki😎😀 - avatar
+ 1
You have used printIn but it will be println. It's not an uppercase I (I for Idea) in println, it's a lowercase l (l for learn). Here, ln means new line.
7th Dec 2017, 11:05 AM
DAB
DAB - avatar
+ 1
I used I for Idea, I got it, that's not the problem, but using print instead of printIn worked
7th Dec 2017, 11:09 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
I used print instead of printIn and it worked, but why, I'm still learning and I think I just saw printIn in what I learned, can you explain the difference please?
7th Dec 2017, 11:10 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
oh I got it, what I saw was println (L small not i capital) thanks for your help guys
7th Dec 2017, 11:13 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
that's quite annoying actually 😅 thanks again guys for your help
7th Dec 2017, 11:15 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
I think it was me, sorry for that, I upvoted them again
7th Dec 2017, 11:18 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
I think I feel guilty of it, sorry again for that
7th Dec 2017, 11:22 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
thanks for your answers guys, and sorry for the downvote Dipta, I guess I fixed it and gave an upvote, hope you're not annoyed of me
7th Dec 2017, 11:25 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
I think it os ok now, thanks for your help guys.
7th Dec 2017, 11:28 AM
Mohammad Eid
Mohammad Eid - avatar
+ 1
nice code dude
7th Dec 2017, 7:40 PM
Pradheepviki😎😀
Pradheepviki😎😀 - avatar
+ 1
all the best
7th Dec 2017, 7:44 PM
Pradheepviki😎😀
Pradheepviki😎😀 - avatar
+ 1
Many thanks 😊
7th Dec 2017, 11:52 PM
Mohammad Eid
Mohammad Eid - avatar