Hi,
In the Comparator example given at the front of page 152, it says return r1.id = r2.id. Shouldn't it be return r1.id - r2.id, since we are using it as a comparator?
Yes, this is an error, most likely caused when the book was type set. Thank you so much for finding and reporting it! We will update our errata page to include it: http://www.selikoff.net/ocp
If/when you find more, can you start a new thread (and stick the publisher - Sybex - and page number in the subject). Now that the book promo is over, that will make it easier for people to find/reply.