Is there any relation 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

Is there any relation between 'System.out.print()' and 'System.out.println()'?

26th Jul 2019, 4:29 PM
Captain America
Captain America - avatar
2 Answers
+ 3
println () method adds a new line, print() method places everything on the same row.
26th Jul 2019, 4:35 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
system.out.println prints the command in a new line whereas system.out.print prints it in the same line
26th Jul 2019, 6:22 PM
raven