want it to have headings and lines and be in 5 columns.
There are a couple of ways to put printed output in columns:
use tab characters before the data for each column
use format strings with the printf method. See the API
doc for the Formatter class for how to build format strings