title: How to Think Like a Computer Scientist: JAVA Programming
author: Allen B. Downey
description: This version is a draft I wrote several years ago. The current version is available for download from Green Tea Press.
zlib_text: ![](Images/image00190.jpeg)
  
  ![](Images/image00210.jpeg)
  
  Think
  
  Java
  
  HOW TO THINK LIKE A COMPUTER SCIENTIST
  
  Al en B. Downey & Chris Mayfield
  
  ![](Images/image00198.jpeg)
  
   **Think Java**
  
  _**How to Think Like a Computer Scientist**_
  
  _**Allen B. Downey and Chris Mayfield**_
  
  Beijing Boston Farnham Sebastopol Tokyo
  
   **Think Java**
  
  by Allen B. Downey and Chris Mayfield
  
  Copyright © 2016 Allen B. Downey and Chris Mayfield. All rights reserved.
  
  Printed in the United States of America.
  
  Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol,
  CA 95472.
  
  O’Reilly books may be purchased for educational, business, or sales
  promotional use. Online editions are also a[vailable for most titles (
  _http://safaribooksonline.com_](http://safaribooksonline.com)). For more
  information, contact our corporate/
  
  institutional sales department: 800-998-9938 or _corporate@oreil y.com_.
  
  **Editor:** Brian Foster
  
   **Indexers:** Allen B. Downey and Chris Mayfield
  
   **Production Edi