+ 19

In java program, what is meant by println ?.. what does mean * print and println *....

"system.out.print" is used to print something... "system.out.println", why it's also used ?..

31st May 2018, 3:46 PM
madhina
madhina - avatar
3 Réponses
+ 16
yes... Really it's helps to me... Thanks for given the example clearly...
31st May 2018, 3:59 PM
madhina
madhina - avatar
+ 15
Thanks for clear the doubt...
31st May 2018, 3:51 PM
madhina
madhina - avatar
+ 6
In println "ln" stands for line. This means after printing the cursor will move to next line. In System.out.print the cursor remains in same line after printing. e.g. System.out.print(5); System.out.print(6); OUTPUT: 56 // cursor remains in same line System.out.println(5); System.out.println(6) OUTPUT : 5 6 // cursor moves to next line after printing 5 Hope it helps!!
31st May 2018, 3:50 PM
Pulkit Kamboj
Pulkit Kamboj - avatar