Java Cookbook, 2nd Edition by Ian F. Darwin This errata page lists errors outstanding in the most recent printing. If you have technical questions or error reports, you can send them to booktech@oreilly.com. Please specify the printing date of your copy. This page was updated November 28, 2006. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification Confirmed errors: {165},: The text under the example should read 2 11/12 years not 3 11/12 years (from the end of 2000 to the end of 2003 is about 3 years, not 4). (190) 5 lines from bottom; List l ist = new ArrayList(); should be: List list = new ArrayList(); {254} 1-line code example at top of page: 1) It is probably preferable to use System.out.printf() instead of System.out.format(); they behave identically, but printf() is the name that has been used for this functionality since the early 1970's in a wide range of programming languages 2) It is definitely better to omit the "1$", "2$" etc unless they are in some weird order, since the defaults do the obvious thing. 3) The example should arguably end with the newline printer, %n So the example could be re-written as follows (and will be in a new code file PrintfDemo): System.out.printf("%04d - the year of %f%n", 1951, Math.PI); [697] 2nd code example, 2nd line; indexof should be: indexOf