Converting a println out in to a method

Printable View