I was doing some simple algorithms in Java and most of the time using System.out.println()
or System.out.print()
, but to do the definition of the number of decimal places I'm using System.out.printf()
. I know there is a difference between the first two, both in operation and in implementation. But what is the difference between them and the last one?