+ 4
System.out.println, print
What is difference between System.out.println() and System.out.print()
4 ответов
+ 13
System.out.println ("something") ;
=
System.out.print ("something\n");
=
System.out.print ("something"+"\n");
+ 5
println adds a "new line"
+ 5
.println adds a new line after printing the code while .print doesn't.
+ 3
thanks ifl