Java library lld issue: fix twice available count issue
Author: syedmaqsoodblrCreated Oct 28, 2025Updated Oct 28, 2025
Issue: creating two BookCopy instances, each one adds itself to the LibraryItem copy list in its constructor.
Solution: copies.put(copyId, copy); instead of copies.put(copyId, new BookCopy(copyId, item));
Source: ashishps1/awesome-low-level-design