0

What is the difference between system.out.println and system.out.printf in Java?

4th Jun 2019, 4:47 AM
AJIT SRÌVÁSTÄVÅ
AJIT SRÌVÁSTÄVÅ - avatar
2 Réponses
+ 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.
4th Jun 2019, 6:22 AM
Seb TheS
Seb TheS - avatar