+ 1
System.out.print?
Whatâs the difference between âSystem.out.printIn()â and âSystem.out.print()â?
3 Answers
+ 11
@RandomCoder actually Hi and Hello will be on the same line
System.out.print does not move the cursor to a new line Hello will be printed on the same line as Hi, however System.out.println does move the cursor to a new line so any print statement after that will be on another line
+ 3
.println leaves a line after printing the text.
.print does not leave a line after printing the text.
+ 2
@Yerucham Yes I tried now, you are rightđ