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?

28th Mar 2017, 3:51 PM
Alex Snaidars
Alex Snaidars - avatar
1 Odpowiedź
+ 17
You missed to create the object. This should be the second line of main: arr[0] = new Book();
28th Mar 2017, 4:00 PM
Shamima Yasmin
Shamima Yasmin - avatar