Last Updated: June 6, 2026
PrintWriter is the convenience writer for formatted text output. It takes anything you give it (primitives, objects, null) and turns it into characters without making you call String.valueOf first, and it adds printf/format for column-aligned, currency-padded, decimal-trimmed output. This lesson covers what PrintWriter does, the full set of constructors, the print / println / printf / write method families, format specifiers, its quiet error-handling model, and how to chain it onto a BufferedWriter for buffered formatted output.