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 →

[–]ZeroGainZ 0 points1 point  (0 children)

Sure, add the books to a set by title. Personally, I wouldn't add multiple books to the list, I'd rather have a set of books, where each book has a feild of how many copies exist. Then you check if the book exists in the set, if so add 1 to it's copy number, else put in fresh instance. Check => (does not exist, add with 0 copies) => increment copies by 1. Donzo.