+ 2

Hello All, I have faced an issue while learning 'Intro to Java'.

During the phase of solving the Code Repo Challenge, the entire code seemed to be fine except the 'printIn' thing, it didn't work.(everytime) So, I tried 'print' in its place and lo ! It worked. However, there seems to be a glitch because as per one of the modules this is how it should be : System.out.println("Write once, run anywhere!"); Kindly help. TIA.

24th Apr 2023, 3:50 PM
Coding Caesar🎯
Coding Caesar🎯 - avatar
7 Respostas
+ 5
Please check the spelling, it is println – "l" is a lower-case "L", not a capital "i"
24th Apr 2023, 3:54 PM
Lisa
Lisa - avatar
+ 2
Okay, Let me check, please. Thanks
24th Apr 2023, 4:16 PM
Coding Caesar🎯
Coding Caesar🎯 - avatar
+ 2
Lisa , Superr ! 👏👏 Thank you so much for clearing my misunderstanding. It was indeed a lowercase 'L'👉'l' and not a capital 'i'. It worked. Thanks once again for your prompt response.🙏
24th Apr 2023, 4:24 PM
Coding Caesar🎯
Coding Caesar🎯 - avatar
+ 2
println like in "print line". that's how the L comes...
24th Apr 2023, 4:28 PM
Lisa
Lisa - avatar
+ 2
print is for printing in same line While println is for print the output in a new line
25th Apr 2023, 1:33 AM
Kailash Yandrapu
+ 1
Okay. Thanks for this additional info.
24th Apr 2023, 4:41 PM
Coding Caesar🎯
Coding Caesar🎯 - avatar
0
Kailash Yandrapu Thanks, I never knew this.
25th Apr 2023, 2:55 AM
Coding Caesar🎯
Coding Caesar🎯 - avatar