Introduction to Programming Using Java, Eighth Edition
News and Errata
- January 22, 2019 — Since this book uses JavaFX, and JavaFX is not included in Java 11, there is some question how to use the book with Java 11 and later. I have written a short web page about how to use JavaFX and Java 11 in Eclipse as painlessly as possible, for the purposes of this textbook. See Section 2.6.7 has some information about using Java 11 on the command line.)
- December 5, 2018 — The official release of the Eighth Edition. Once again, I am indebted to John Ganci, who contributed many corrections to the "beta" version of this edition.
- August 19, 2018 — A "final beta" version of the Eighth Edition is available for browsing on the web and for download. The official release of the Eighth Edition will take place some time after Java 11 is released.
Errata for Version 8.0.0
This is a list of substantive errors that have been found in the original Version 8.0, December 2018. These errors have been corrected in the online verions, but not in the downloadable or printed versions.
- Section 3.9.1: In "The specified color is used for all subsequent fill operations up until the next time g.setColor() is called", g.setColor should be g.setFill. The same error needs to be fixed in the solutions to Exercise 3.8 and Exercise 3.9.
- Section 3.9.1: Three occurrances of g.drawLine should be g.strokeLine
- Section 5.8.3: In two code samples, "g.setColor(Color.RED);" should be "g.setFill(Color.RED);".
- Chapter 6 Quiz Answers, in the answer to Question 5, "The drawLine command" should be "The strokeLine command".
- Section 10.6, next-to-last paragraph of the introductory material: "The net result is that we've added up the lengths of all the streams in the list" should be "The net result is that we've added up the lengths of all the strings in the list."
- May 16, 2018 -- I have posted Version 7.0.3, with just a very few corrections compared to 7.0.2. This is the last update to the seventh edition, and I have begun work on the eighth edition.
- November 25, 2017 -- My CPSC 124 web site includes programming assignments as well as tests and quizzes from the current version of my Introductory Programming course. The Spring '17 version is also available.
- December 20, 2016 -- Version 7.0.2 is released, a minor upgrade from Version 7.0, with a number of mostly typographical corrections beyond those in Version 7.0.1. Thanks are due to readers who emailed me with corrections, especially John Ganci, who is responsible for many of the corrections in this version. I expect this to be the final release of the seventh edition of this book. Substantive changes from Version 7.0 are noted below. Older news can be found below the list of errors.
- December 16, 2016 -- I have just finished teaching an intermediate programming course based on Chapters 8 through 13 of this book. The web site, http://math.hws.edu/eck/cs225/index_f16.html, includes a set of programming assignments that were used in the course.
- March 19, 2016 -- I have added eBook versions of this textbook to the web site, in "epub" format and in "mobi" format for Kindle. They can be downloaded using links at the bottom of the front page. Note that there can be problems with the rendering of long lines in code samples, and that the problems will be worse on some devices. The eBook versions should be considered somewhat experimental. In addition to adding the eBooks, a very small number of errors (about a half dozen) have been fixed in the on-line and PDF versions, without changing the version number.
- August 1, 2015 -- Version 7.0.1 is released. This is a very minor upgrade of the original version 7, with a small number of corrections.
- August 1, 2014 -- Version 7 is released. Version 7 requires Java 7 or later. Note that with this version, the book no longer cover applets, and there are no applets in the on-line version. Readers are encouraged to download, compile, and run the examples. Links for downloading are available on the front page.
- May, 2014 -- Labs from my intro programming course for Spring 2014 are on the course web page at http://math.hws.edu/eck/cs124. The labs from Spring 2013 are also still available.
- January 4, 2014 -- Version 6.0.3 is released, with more small error fixes (many, once again, from Mark Cristy). I have also added, experimentally, EPUB and MOBI ebook versions of the text, available among the download links at the bottom of the index page.
- May 17, 2013 -- Version 6.0.2 is released, with fixes for many small, mostly typographical errors. Again, thanks to readers who sent in error reports, especially Mark Christy and John Ganci, who found many errors.
- May 17, 2013 -- The labs for my latest version of Introductory Programming are now on line at http://math.hws.edu/eck/cs124, with a number of new labs for this version of the course. (By the way, labs for older versions of the course -- such as those from Fall 2011, Fall 2009, and Spring 2006 -- are still available.)
- July 25, 2012 -- Version 6.0.1 is released. This is a very minor upgrade, fixing about 75 typographical errors and 3 small errors in sample program code. (The worst error was a reversal of the parameters data and newdata in a call to System.arraycopy() in Section 7.4.2.) The printed versions at lulu.com have not been updated. Thanks to readers who sent in error reports!
- July 24, 2012 -- Note: The web sites for the two-course sequence that I teach from this book (http://math.hws.edu/eck/cs124 and http://math.hws.edu/eck/cs225) now contain the 2011--2012 version of those courses, including a number of labs that were new this year.
- July 18, 2011 -- The applet in Exercise 3.7 was broken. It has been fixed (without changing the book's version number).
- June 1, 2011 -- Version 6.0 is released. The sixth edition adds a new chapter on threads and multiprocessing and some coverage of new features of Java 6 and Java 7. Thanks to many readers who wrote with suggestions and error reports, especially to Jeff Wexler who sent a large numbers of corrections.
- May 15, 2010 -- I have finished teaching CPSC 225: Intermediate Programming, based on the Chapters 8 through 13 of this book. The web site for that course can be found at http://math.hws.edu/eck/cs225. Also available is http://math.hws.edu/eck/cs124, the web site for a course based on Chapters 1 through 7. I will be teaching CS124 again this Fall at Hobart and William Smith Colleges.