by
Steve Wilson, Jeff Kesselman
If you find an error in the book, please check to see if it is already known before reporting it. If you do not find it in the list, please mail us the relevant information, including page numbers. All errata will be fixed in the next possible printing.
The signatures for the InputStream and OutputStream read and write methods should be:public abstract int read() throws IOException;
public int read(byte[] buffer) throws IOException;public abstract void write(int b) throws IOException;
public void write(byte[] b) throws IOException;
The methods programQuit() and go() need to be synchronized as follows:public synchronized static void go(final String className);
public synchronized static void programQuit();
The last line on the page has the wrong array index. It should read:ShippingInfo.states[4] = "Java City";
The code on the second line has an additional incorrect dash. It should read:startingMemoryUse) / 100f;
The code on the thirty first line has an incorrect dash. It should read:!isSelected && !hasFocus) {