Using a 2D Array in a Class Object - NullPointerException?

If I remove the declaration in the constructor, there is a NullPointerException as it attempts to define the values of the variables in the array.

??

1 Like