+ 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.
7 Respuestas
+ 5
Please check the spelling, it is println – "l" is a lower-case "L", not a capital "i"
+ 2
Okay,
Let me check, please.
Thanks
+ 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.🙏
+ 2
println like in "print line". that's how the L comes...
+ 2
print is for printing in same line
While println is for print the output in a new line
+ 1
Okay.
Thanks for this additional info.
0
Kailash Yandrapu
Thanks, I never knew this.