Mark Captain wrote: . . .
How do i use the first method? . . .
As far as I am concerned, you don’t. A class should be responsible for itself, so the printClosingMessage should be part of the account class. You would call it like this
account123.printClosingMessage();
or like this
account456.printClosingMessage(out);
depending whether you want to pass it a reference to an Output object or not.
Please avoid coloured text; many people find it difficult to read.