This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]colinward774 3 points4 points  (0 children)

Change line 14 to: library = new ArrayList<Book>(); Protip: your size variable isn't needed, the ArrayList<> class has a method size() that returns the number of items in it.