+ 1

What is the difference between print and println

26th Sep 2017, 9:08 AM
shreya
4 Answers
+ 6
println prints its argument and then changes the line
26th Sep 2017, 9:34 AM
Vahid Shirbisheh
Vahid Shirbisheh - avatar
+ 1
If you really don't like to add 'ln' then you can get use this: System.out.println("what you want to print"); //Equals to: System.out.print("what you want to print\n");
26th Sep 2017, 9:59 AM
Ziv
Ziv - avatar
+ 1
print continue the same line println breaks the line.
26th Sep 2017, 1:45 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar