I have problem with method in Java

Printable View