Instruct: Classify Amazon reviews into positive or negative sentiment
Query: Examples have lots of ugly/nasty inner classes - yuck!

This book's content is great even though it spends a lot of ink regurgitating the doc (symptomatic of O'Reilly). Even with this it touches on everything within 230 pages while showing many examples.My issue with this book is the way that the examples are written. It uses inner classes left and right requiring more careful reading of the code. I know this is a philosophical issue; but in general inner classes are a lazy programmer's tool which tends to confuse code and make it harder to read/maintain. It is bad enough that they are used in documented public APIs - in a didactic text, there's no need to exacerbate this.Content gets 4 stars. Examples get 1 star. Since code examples are really 1/2 the content, it gets only two stars. Previous book by the author (on cryptography) had much better examples - and didn't use inner classes.