Written output is most easily performed with PrintStream methods:

PrintStream also implements OutputStream’s low-level method write( ), which can be used to write to the console.