0
[SOLVED] Exception java.lang.NullPointerException
EDIT : PROBLEM SOLVED https://code.sololearn.com/cRcc1497pewc/?ref=app It compiled through cmd command but wouldn't run. What's the matter?
1 Answer
+ 17
You missed to create the object. This should be the second line of main:
arr[0] = new Book();