System.out is an instance of type PrintStream
PrintStream methods
- void print(..)
- void println(..)
- void println()
- void printf(String fmt, ...)
The first two are designed to convert the argument to a suitable character string.
The second inserts newline in the output.
The third only outputs a newline.
The printf method provides formatting of the output.
The number of parameters to printf depends on the number of conversion specifications in the first parameter - the format string.