Difference between "System.out.print" and "System.out.println" ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Difference between "System.out.print" and "System.out.println" ?

with examples..

16th Dec 2016, 10:41 AM
Rishabh Rai
Rishabh Rai - avatar
2 Answers
+ 3
imagine you are writing a document in word you write a line of text then you want to go to the next line, what do you do ? you press enter. Thats what println (print line) does, prints a line and then goes to the next line. print does not do that, it just prints some text without going to the next line.
16th Dec 2016, 10:57 AM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
nice
16th Dec 2016, 11:06 AM
Rishabh Rai
Rishabh Rai - avatar