This HTML version of Think Java is provided for convenience, but it is not the best format for the book. In particular, some of the math symbols are not rendered correctly.

You might prefer to read the PDF version, or you can buy a hard copy from Amazon.

Think Java: How to Think Like a Computer Scientist

Allen B. Downey and Chris Mayfield

2nd Edition, Version 7.1.0

Copyright © 2020 Allen B. Downey and Chris Mayfield.

Permission is granted to copy, distribute, and/or modify this work under the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License, which is available at

This document was translated from LATEX by HEVEA.