system.out.formt();...how it works...?
System: It is a class made available by Java to let you manipulate various operating system related objects. It's part of java.lang namespace.
out: out being one of those objects, is a static publicly available object inside that class. The object itself, representing standard output, is an instance of java.io.PrintStream class. Standard output is, on most operating systems, console output.
format: It is a string that specifies the formatting to be used.