Is there any relation between 'System.out.print()' and 'System.out.println()'? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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