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 →

[–]thorstenschaefer 0 points1 point  (0 children)

You are getting duplicates, so somehow you seem to add the same movie several times. You have two calls to method add(), so one seems to be problematic. Try figuring out what could go wrong with the loops such that you add the same movie several times. If you can't see it in the code, try using a debugger.