0
What is the difference between system.out.println and system.out.printf in Java?
2 Answers
+ 1
System.out.println prints what is wanted, but also prints an extra newline to the end.
System.out.printf is a print statement similar to printf from stdio.h in C programming language.