Think Java: How to Think Like a Computer Scientist

Allen Downey and Chris Mayfield's How to Think Like a Computer Scientist text in Java

Think Java: How to Think like a Computer Scientist


  1. Computer Programming
  2. Variables and Operators
  3. Input and Output
  4. Methods and Testing
  5. Conditionals and Logic
  6. Loops and Strings
  7. Arrays and References
  8. Recursive Methods
  9. Immutable Objects
  10. Mutable Objects
  11. Designing Classes
  12. Arrays of Objects
  13. Objects of Arrays
  14. Extending Classes


Interested in evaluating Think Java: How to Think like a Computer Scientist for your class? Sign up for a Free Instructor Account to access and customize this Codio Resource for free!

Easily Add Auto-Grading

To supplement the Think Java text, easily add auto-graded assessments from Codio's global assessments library. This contains auto-graded assessment questions covering a variety of topics, difficulty levels, and assessment types. Both teachers and students get instant feedback on the learner's level of understanding. Students also get rich explanations and a sample solution for every question in the Java course.

Book Description

Currently used at many colleges, universities, and high schools, this hands-on introduction to computer science is ideal for people with little or no programming experience. The goal of this concise java programming book is not just to teach you Java, but to help you think like a computer scientist. You’ll learn how to program—a useful skill by itself—but you’ll also discover how to use programming as a means to an end. Authors Allen Downey and Chris Mayfield start with the most basic concepts and gradually move into topics that are more complex, such as recursion and object-oriented programming. Each brief chapter in Think Java: How To Think Like a Computer Scientist covers the material for one week of a college course and includes exercises to help you practice what you’ve learned.
  • Learn one concept at a time: tackle complex topics in a series of small steps with examples
  • Understand how to formulate problems, think creatively about solutions, and write programs clearly and accurately
  • Determine which development techniques work best for you, and practice the important skill of debugging
  • Learn relationships among input and output, decisions and loops, classes and methods, strings and arrays
  • Work on exercises involving word games, graphics, puzzles, and playing cards"

— Amazon

Learn by Doing Approach

When reading through the Java computer science book examples, follow along with Codio's fully featured in-browser IDE. With syntax highlighting, built-in debugger, terminal access, and the ability to run code with a click of the button, students will be using professional-grade tools as they build their skills. 

Think Java Review

Think Java is used by people across the world. It is specifically tailored to students preparing for the Computer Science Advanced Placement (AP) Exam but is offered to anyone who wants to learn Java. The Java programming book teaches program development and debugging. It covers core computer science topics using the Java programming language and then introduces more complex concepts in later sections. It presents concepts clearly, without making the reader feel overwhelmed with extensive and hard exercises. 

Whether you have no experience with Java or consider yourself to be an expert, there is always something you can learn. Think Java can teach you things you may have missed or forgotten. Starting from the beginning can seem intimidating, but with the help of Codio, you can start your computer science journey today. 

Codio makes it easy to deliver exceptional computer science learning experiences. Automatic grading gives you immediate and meaningful feedback and templated coding helps you guide your curriculum. By signing up for Codio at no charge, you can get free access to Think Java: How to Think Like a Computer Scientist!

Take a peek inside...

  • Allen Downey's renowned text
  • IDE next to text to follow along
  • Run code with the push of a button
  • Easily add auto-graded questions from Codio's Assessment Library

Ready To Get Started?

Try our code plagiarism checker with a free Codio Instructor Account to start taking advantage of our coding course resources!!