0

Difference

What is the exact difference between the methods print() and println()?

30th May 2019, 6:34 AM
Moeketsi Mokhatla
Moeketsi Mokhatla - avatar
4 RĂ©ponses
+ 1
System.out.print(“text”); output: text<-next print begins here //////// System.out.println(“text”); output: text <-next print begins here
30th May 2019, 9:51 AM
Jake
Jake - avatar
+ 3
println add automatically a new line at end while print dont (println mean "print line")
30th May 2019, 6:38 AM
KrOW
KrOW - avatar
+ 1
Thank you all guys for clarity.
11th Jun 2019, 10:42 AM
Moeketsi Mokhatla
Moeketsi Mokhatla - avatar