Pretty Printing :

		float a = 123.137114f;
        System.out.printf("Formatted number is %.2f", a); // → 123.14 (Round Off ho gaya)
System.out.printf("Pie:%6.3f", Math.PI); // → Pie:_3.142 // _ represents white space

        System.out.printf("My name is: %s %s", "Kunal", "Kushwaha"); // → My name is: Kunal Kushwaha

here %s is a placeholder

Place Holders list :

There are many format specifiers we can use. Here are some common ones:

%c - Character
%d - Decimal number (base 10)
%e - Exponential floating-point number
%f - Floating-point number
%i - Integer (base 10)
%o - Octal number (base 8)
%s - String
%u - Unsigned decimal (integer) number
%x - Hexadecimal number (base 16)
%t - Date/time
%n - Newline