Java code samples from the O'Reilly Cookbook