0 / 60 seg.

What is the purpose of the System.out.printf method in Java, as demonstrated by the following code?

System.out.printf("Hello %s, your balance is %.2f", "John", 2500.0);