Learning Java by Patrick Niemeyer and Jonathan Knudsen 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 last modified on July 5, 2001. 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: (40) Second paragraph: The end of the second paragraph reads "The particular Graphics object we are passed in the paintComponent() method..." Should read "The particular Graphics object we are passing in the paintComponent() method..." [116-121] A float variable or data member requires a floating point value, or something that may be promoted to a float, such as an int. In Java, a literal floating-point value, such as 1.0, is actually stored as a double, not a float, and can not be implicitly converted to a float. For example, the following declaration will not compile: float length = 1.0; However, the following will compile, using an appending 'f' to convert 1.0 to a float: float length = 1.0f; There are 10 errors of this type. (179) 5th paragraph, last sentence: "We can create these objects using the Class object" Pls put a period at the end of sentence. (293) Third paragraph, start of 5th line: "server server" type for "server" (295) 3rd paragraph: "Working with mutlicast sockets is very much like working with datagram sockets" Or multicast sockets. (391) Third paragraph: "At the other extreme, we can forsake Java's strong typing and use the reflection API to create a completely dynamic hookup between an event source It'sand its listener." There's an extra "It's" in the third word from the end. (404) Code, mid way down, following blank line: "// put the controls the content pane" Should be: "// put the controls in the content pane" (429) First paragraph: "This examples shows a frame window with a single button." "examples" should be singular. (448) 2nd paragraph; "For a very little typing...." should be: "For very little typing...." (461) Fourth paragraph, line 1: "Often you wont event need to worry..." Should read: "Often you won't even need to worry..." (478) Fourth paragraph: Controls whether the component expands to fill the space alloted to it. int gridheight, gridwidth Controls the number of rows or columns the component spans. int anchor Controls the position of the component if there is extra room within the space alloted to it. Pls change 'alloted' to 'allotted', 2x. (485) Several lines from the bottom: "...effective overall weight for each for each row and each column..." Should read: "...effective overall weight for each row and each column..." 515) Last line from the bottom: "won't even ... until we try to try to display ..." Should read: "won't even ... until we try to display ..."