What is the difference between println and print in java? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

What is the difference between println and print in java?

15th Jan 2018, 3:55 PM
vj_codes
vj_codes - avatar
3 Réponses
+ 24
System.out.print("abc\n"); = System.out.println("abc");
15th Jan 2018, 4:55 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 5
println prints a new line after the thing you want to output print does not do that
15th Jan 2018, 4:02 PM
michal
+ 4
Could I make a suggestion? I think you should redo the Java course, or even another one than the one provide by sololearn, as you seems to not have acquired the basics, while your profile indicate you've ended it ^^
15th Jan 2018, 4:21 PM
visph
visph - avatar