+ 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 ?..
3 Respuestas
+ 16
yes... Really it's helps to me... Thanks for given the example clearly...
+ 15
Thanks for clear the doubt...
+ 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!!