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

What is differences between System.out.println and System.out.print

30th Apr 2020, 9:34 AM
RAFBY SAPUTRA MOKODOMPIT
RAFBY SAPUTRA MOKODOMPIT - avatar
2 Answers
+ 1
"ln" is the difference. "ln" meaning append new line
30th Apr 2020, 9:49 AM
Rohit
0
System.out.println() appends a newline character. System.out.print() doesn't.
30th Apr 2020, 9:39 AM
Damyian G
Damyian G - avatar