Skip to content


Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.

Classic Computer Science Problems in Java

This repository contains source code to accompany the book Classic Computer Science Problems in Java by David Kopec, available from Manning, Amazon, and other fine book sellers. You will find the source organized by chapter. As you read the book, each code listing contains a file name that corresponds to a file in this repository. The book was published in December, 2020.

Classic Computer Science Problems in Java Cover


The source code was written against version 11 of the Java language and should run on any known newer version at the time of publication. It makes use of no Java libraries beyond the standard library. It was developed in Eclipse and this folder can be opened as an Eclipse workspace. You can then right-click any file with a main() method and select "Run" to compile and execute it. All other popular Java IDEs can import Eclipse projects, but you can also easily create a project out of each chapter, which is bundled as a Java package. For directions importing Eclipse projects into IntelliJ see this tutorial from Jetbrains.

Questions about the Book

You can find general questions and descriptive information about the book on the Classic Computer Science Problems website. Also, feel free to reach out to me on Twitter, @davekopec. If you think you found an error in the source code, please open an issue up here on GitHub.


All of the source code in this repository is released under the Apache License version 2.0. See LICENSE.

Other Books and Languages

Official Books from the Series by @davecom