Problem with an exercise in java

Printable View