How can I make this Java class work

Printable View