Buy New
-
To see product details, add this item to your cart.
Ships from: Amazon.com Sold by: Amazon.com
Used - Good
-
To see product details, add this item to your cart.
Ships from: World of Books (previously glenthebookseller) Sold by: World of Books (previously glenthebookseller)
Download the free Kindle app and start reading Kindle books instantly on your smartphone, tablet, or computer - no Kindle device required.
Read instantly on your browser with Kindle for Web.
Using your mobile phone camera - scan the code below and download the Kindle app.
Follow the authors
OK
Think Java: How to Think Like a Computer Scientist
Purchase options and add-ons
Think Java is a hands-on introduction to computer science and programming used by many universities and high schools around the world. Its conciseness, emphasis on vocabulary, and informal tone make it particularly appealing for readers with little or no experience. The book starts with the most basic programming concepts and gradually works its way to advanced object-oriented techniques.
In this fully updated and expanded edition, authors Allen Downey and Chris Mayfield introduce programming as a means for solving interesting problems. Each chapter presents material for one week of a college course and includes exercises to help you practice what you’ve learned. Along the way, you’ll see nearly every topic required for the AP Computer Science A exam and Java SE Programmer I certification.
- Discover one concept at a time: tackle complex topics in a series of small steps with multiple examples
- Understand how to formulate problems, think creatively about solutions, and develop, test, and debug programs
- Learn about input and output, decisions and loops, classes and methods, strings and arrays, recursion and polymorphism
- Determine which program development methods work best for you, and practice the important skill of debugging
- ISBN-101492072508
- ISBN-13978-1492072508
- Edition2nd
- PublisherO'Reilly Media
- Publication dateJanuary 7, 2020
- LanguageEnglish
- Dimensions7 x 0.75 x 9.25 inches
- Print length326 pages
Frequently bought together

Customers who viewed this item also viewed
- AP Computer Science A Premium, 13th Edition: Prep Book with 6 Practice Tests + Comprehensive Review + Online Practice (2026) (Barron's AP Prep)PaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Sep 20
- Think Python: How to Think Like a Computer ScientistPaperbackFREE Shipping on orders over $35 shipped by AmazonGet it as soon as Sunday, Sep 20
- Learning Java: An Introduction to Real-World Programming with JavaPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21Only 4 left in stock (more on the way).
- Learn Java with Projects: A concise practical guide to learning everything a Java professional really needs to knowPaperbackFREE Shipping by AmazonGet it as soon as Monday, Sep 21
- Head First Java: A Brain-Friendly GuidePaperbackFREE Shipping by AmazonGet it as soon as Sunday, Sep 20
- Effective JavaPaperbackFREE Shipping by AmazonGet it as soon as Tuesday, Sep 22Only 19 left in stock - order soon.
Customers also bought or read
- Head First Java: A Brain-Friendly Guide#1 Best SellerJava Programming Reference
Paperback$43.99$43.99FREE delivery Sun, Sep 20 - Learning Java: An Introduction to Real-World Programming with Java
Paperback$48.47$48.47FREE delivery Mon, Sep 21 - Think Data Structures: Algorithms and Information Retrieval in Java
Paperback$27.60$27.60Delivery Sun, Sep 20 - Java for Beginners: Build Your Dream Tech Career with Engaging Lessons and Projects
Paperback$14.76$14.76Delivery Mon, Sep 21 - Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software 2nd Edition#1 Best SellerJava Programming
Paperback$30.68$30.68Delivery Sun, Sep 20 - Core Java, Volume I: Fundamentals (Oracle Press for Java)
Paperback$75.77$75.77FREE delivery Mon, Sep 21 - Clean Code: A Handbook of Agile Software Craftsmanship (Robert C. Martin Series)
Paperback$58.14$58.14FREE delivery Sun, Sep 20 - Java Cookbook: Problems and Solutions for Java Developers
Paperback$53.35$53.35FREE delivery Mon, Sep 21 - Python Crash Course, 3rd Edition: A Hands-On, Project-Based Introduction to Programming#1 Best SellerFunctional Software Programming
Paperback$27.53$27.53Delivery Sun, Sep 20 - Java Coding Problems: Become an expert Java programmer by solving over 250 brand-new, modern, real-world problems
Paperback$43.99$43.99FREE delivery Mon, Sep 21 - Fluent Python: Clear, Concise, and Effective Programming
Paperback$43.99$43.99FREE delivery Sun, Sep 20 - C Programming Language, 2nd Edition#1 Best SellerC Programming Language
Paperback$60.30$60.30FREE delivery Sun, Sep 20 - Programming: Principles and Practice Using C++ (C++ In-depth)#1 Best SellerC++ Programming Language
Paperback$56.72$56.72FREE delivery Sun, Sep 20 - Learn Java with Projects: A concise practical guide to learning everything a Java professional really needs to know
Paperback$39.99$39.99FREE delivery Mon, Sep 21 - Core Java, Volume II: Advanced Features (Oracle Press for Java)
Paperback$74.63$74.63FREE delivery Sun, Sep 20 - Design Patterns: Elements of Reusable Object-Oriented Software
Hardcover$24.35$24.35Delivery Mon, Sep 21 - Introducing C++: The Easy Way to Start Learning Modern C++
Paperback$46.15$46.15FREE delivery Sun, Sep 20 - Code: The Hidden Language of Computer Hardware and Software#1 Best SellerSoftware Design & Engineering
Paperback$33.95$33.95Delivery Sun, Sep 20
From the brand
-
See more books in the series
-
More From O'Reilly
-
Sharing the knowledge of experts
O'Reilly's mission is to change the world by sharing the knowledge of innovators. For over 40 years, we've inspired companies and individuals to do new things (and do them better) by providing the skills and understanding that are necessary for success.
Our customers are hungry to build the innovations that propel the world forward. And we help them do just that.
From the Publisher
From the Preface
Think Java is an introduction to computer science and programming intended for readers with little or no experience. We start with the most basic concepts and are careful to define all terms when they are first used. The book presents each new idea in a logical progression. Larger topics, like control flow statements and object-oriented programming, are divided into smaller examples and introduced over the course of several chapters.
This book is intentionally concise. Each chapter is 10–12 pages and covers the material for one week of a college course. It is not meant to be a comprehensive presentation of Java, but rather, an initial exposure to programming constructs and techniques. We begin with small problems and basic algorithms and work up to object-oriented design. In the vocabulary of computer science pedagogy, this book uses the objects late approach.
The Philosophy Behind the Book
Here are the guiding principles that make the book the way it is:
One concept at a time: We break down topics that give beginners trouble into a series of small steps, so that they can exercise each new concept in isolation before continuing.
Balance of Java and concepts: The book is not primarily about Java; it uses code examples to demonstrate computer science. Most chapters start with language features and end with concepts.
Conciseness: An important goal of the book is to be small enough so that students can read and understand the entire text in a one-semester college or AP course.
Emphasis on vocabulary: We try to introduce the minimum number of terms and define them carefully when they are first used. We also organize them in glossaries at the end of each chapter.
Program development: There are many strategies for writing programs, including bottom-up, top-down, and others. We demonstrate multiple program development techniques, allowing readers to choose methods that work best for them.
Multiple learning curves: To write a program, you have to understand the algorithm, know the programming language, and be able to debug errors. We discuss these and other aspects throughout the book, and summarize our advice in Appendix D.
Editorial Reviews
About the Author
Chris Mayfield is an Assistant Professor of Computer Science at James Madison University, with a research focus on CS education and professional development. He has a Ph.D. in Computer Science from Purdue University and Bachelor's degrees in CS and German from the University of Utah.
Product details
- Publisher : O'Reilly Media
- Publication date : January 7, 2020
- Edition : 2nd
- Language : English
- Print length : 326 pages
- ISBN-10 : 1492072508
- ISBN-13 : 978-1492072508
- Item Weight : 2.31 pounds
- Dimensions : 7 x 0.75 x 9.25 inches
- Best Sellers Rank: #266,995 in Books (See Top 100 in Books)
- #29 in Java Programming
- #47 in Object-Oriented Software Design
- #76 in Object-Oriented Design
- Customer Reviews:
About the authors

Allen Downey is a Professor Emeritus at Olin College and Principal Data Scientist at PyMC Labs. He is the author of several books related to programming and data science, including Probably Overthinking It, Think Python, Think Stats, and Think Bayes. The idea behind these books is that if you know how to program, you can use that skill to learn other things.
Allen has a Ph.D. from U.C. Berkeley and M.S. and B.S. degrees from MIT. He has taught at Olin College, Colby College and Wellesley College.

Discover more of the author’s books, see similar authors, read book recommendations and more.

Chris Mayfield is an assistant professor of Computer Science at James Madison University in Harrisonburg, VA. He enjoys running, biking, hiking, singing, coding, and of course, teaching. His current work focuses on CS education and professional development, particularly in K-12 schools. Chris and his wife Stacie are the proud parents of four children.























