Beginner/Intermediate Java Code - NullPointerException and wrong output.

Printable View