0

what is the difference between println and print?

5th Aug 2016, 8:47 AM
Ryzelle Leal
Ryzelle Leal - avatar
5 Antworten
+ 2
In Println, "ln" used to print the output in a new line or in the next line. Thats the difference.
5th Aug 2016, 10:23 AM
Abinash Prusty
Abinash Prusty - avatar
+ 1
If you use print, your code will countinue in same line but in println your code will countinue from next line. You can try it in a simple code.
5th Aug 2016, 10:27 AM
Mohammad
+ 1
This is println. This is print.
5th Aug 2016, 11:08 AM
James
James - avatar
0
Println is used to make outputs in a new line whereas print is used to make outputs on different line.
5th Aug 2016, 1:51 PM
Hemant Jaiswal
Hemant Jaiswal - avatar
0
print and println both are methods which perform same task of printing text on screen println shifts cursor on the next line after printing text on screen whereas print method keeps cursor on the same line
5th Aug 2016, 7:38 PM
sachin tomar
sachin tomar - avatar