error in my code(Exception in thread "main" java.lang.NullPointerException)

Printable View