Companion web site for the book "Introduction to Software Design with Java" by Martin P. Robillard, Springer 2019 and its second edition, 2022.
NEW! The third edition of the book is now in production, with publication expected in January 2026. It improves the presentation of numerous topics and provides a thoroughly revised set of code fragments that incorporate the latest features of the language (such as records and the latests APIs) and follow a more effective style. The diagrams are now included as vector graphics and follow the UML standard more closely.
You can now view all the chapter code samples with additional on-demand documentation accessible directly from the code. Check out the CodeSample.info website.
There are three source folders on this site:
code-e1The complete and commented version of the code samples for the first edition of the book;code-e2The complete and commented version of the code samples for the second edition of the book.code-e3The complete and commented version of the code samples for the third edition of the book.solutions-codeThe code file for selected exercises. The code files are referenced from the appropriate solutions pages.
Although you can browse the code on GitHub, the recommended way to peruse the code samples is to clone the repository. The repository includes the configurations files necessary to build the code automatically in Eclipse. However, because some code relies on the JavaFX library, you also need to:
- Download the JavaFX SDK and unzip it to a desired location;
- Create a new User Library under
Eclipse -> Window -> Preferences -> Java -> Build Path -> User Libraries -> New - Name it
JavaFXand include the jars under thelibfolder from your unzipped JavaFX download location.
The exercises are meant to be completed in order, after studying each chapter. Exercises tagged with a star (:star:) are challenging and those tagged with a magnifying glass (:mag:) are based on the exploration of the sample applications.
| Chapter | Exercises | Solutions |
|---|---|---|
| 1 | Exercises | On the exercise page. |
| 2 | Exercises | On the exercise page. |
| 3 | Exercises | Solutions |
| 4 | Exercises | Solutions |
| 5 | Exercises | Solutions |
| 6 | Exercises | Solutions |
| 7 | Exercises | Solutions |
| 8 | Exercises | Solutions |
| 9 | Exercises | Solutions |
Check the Errata for clarifications and corrections. If you spot a problem that is not listed, please check the issues and open a new one if the problem has not yet been reported.
Thanks to Samuel Beaubien, Hüdanur Çelik, Neil Ernst, Benjamin Lee, Christian Joudrey, and joshuamanascu for flagging errors via this site.
A special thanks to the software design educators who have adopted the book to support their teaching. To be included in the list, please fill in this form.
| Name | Institution | Course |
|---|---|---|
| Jin Guo | McGill University | Software Design |
| Neil Ernst | University of Victoria | Object-Oriented Design |
| Kostadin Damevski | Virginia Commonwealth University | Software Engineering: Design and Implementation |
| Mattia Monga | Università Degli Studi Di Milano | Computer Programming II |
| Carlo Nicola Maria Bellettini | Università Degli Studi Di Milano | Computer Programming II |
| Alberto Bacchelli | University of Zurich | Software Construction |
| Gerardo Canfora | University of Sannio | Software Engineering |
| Ivano Malavolta | Vrije Universiteit Amsterdam | Software Design |
| Istvan David | McMaster University | Introduction to Software Development |
| Ghizlane El Boussaidi | École de Technologie Supérieure | Conception orientée objet |
Unless otherwise noted, the content of this repository is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Copyright Martin P. Robillard 2019-2025