String class format( ) method: You can build a formatted String and assign it to a variable using the static format method in the String class.
System.out.printf means that it is a print format the f stands for format.