When I run my program, it says error: java.lang.NullPointerException

Printable View