+ 1

System.out.printf, println, print

What is difference between System.out.printl System.out.print and System.out.printf?

23rd Dec 2017, 12:33 PM
Sad
Sad - avatar
2 Respuestas
+ 4
Just print will print line and dont move cursor for next, so next print will be on a same line. Println will move cursor for a next line. With print you can format your output: https://stackoverflow.com/questions/14413020/how-to-use-formatting-with-printf-correctly-in-java
23rd Dec 2017, 12:49 PM
Dima Makieiev
Dima Makieiev - avatar
+ 1
Thanks :)
23rd Dec 2017, 12:50 PM
Sad
Sad - avatar