by Allen Downey and Chris Mayfield
Think Java is an excellent introduction to computer science and programming intended for people 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 recursion and object-oriented programming, are divided into smaller examples and introduced over the course of several chapters.
This book is also intended for students preparing for the AP Computer Science A Exam.
This book has been revised and expanded in the second edition, which is available here. This edition will remain available.
- Chapter 1: The Way of the Program
- Chapter 2: Variables and Operators
- Chapter 3: Input and Output
- Chapter 4: Void Methods
- Chapter 5: Conditionals and Logic
- Chapter 6: Value Methods
- Chapter 7: Loops
- Chapter 8: Arrays
- Chapter 9: Strings and Things
- Chapter 10: Objects
- Chapter 11: Classes
- Chapter 12: Arrays of Objects
- Chapter 13: Objects of Arrays
- Chapter 14: Objects of Objects
- Appendix A: Development Tools
- Appendix B: Java 2D Graphics
- Appendix C: Debugging