Need help solving this Java program excerise

Printable View