Skip to content

Repository files navigation

Introduction to Software Design with Java

Companion web site for the book "Introduction to Software Design with Java" by Martin P. Robillard, Springer, 2026. Material for the first edition and second edition is also available.

NEW! The third edition of the book was released on 5 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.

Interactive Code Samples

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.

Screenshot of a page on CodeSample.info

Source Code

There are three source folders on this site:

  • code-e1 The complete and commented version of the code samples for the first edition of the book;
  • code-e2 The complete and commented version of the code samples for the second edition of the book.
  • code-e3 The complete and commented version of the code samples for the third edition of the book.
  • solutions-code The 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:

  1. Download the JavaFX SDK and unzip it to a desired location;
  2. Create a new User Library under Eclipse -> Window -> Preferences -> Java -> Build Path -> User Libraries -> New
  3. Name it JavaFX and include the jars under the lib folder from your unzipped JavaFX download location.

Practice Exercises

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.

ChapterExercisesSolutions
1ExercisesOn the exercise page.
2ExercisesOn the exercise page.
3ExercisesOn the exercise page.
4ExercisesOn the exercise page.
5ExercisesOn the exercise page.
6ExercisesOn the exercise page.
7ExercisesSolutions
8ExercisesSolutions
9ExercisesSolutions

Errata

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.

Acknowledgements

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.

NameInstitutionCourse
Jin GuoMcGill UniversitySoftware Design
Neil ErnstUniversity of VictoriaObject-Oriented Design
Kostadin DamevskiVirginia Commonwealth UniversitySoftware Engineering: Design and Implementation
Mattia MongaUniversità Degli Studi Di MilanoComputer Programming II
Carlo Nicola Maria BellettiniUniversità Degli Studi Di MilanoComputer Programming II
Alberto BacchelliUniversity of ZurichSoftware Construction
Gerardo CanforaUniversity of SannioSoftware Engineering
Ivano MalavoltaVrije Universiteit AmsterdamSoftware Design
Istvan DavidMcMaster UniversityIntroduction to Software Development
Ghizlane El BoussaidiÉcole de Technologie SupérieureConception orientée objet

License

Creative Commons License

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

About

Companion repository for the book "Introduction to Software Design with Java"

Resources

Stars

141 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages