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 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 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
The updated second edition of Think Java also features new chapters on polymorphism and data processing, as well as content covering changes through Java 12.
Table of contents
- Preface
- 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
- 15. Arrays of Arrays
- 16. Reusing Classes
- 17. Advanced Topics
- A. Tools
- B. Javadoc
- C. Graphics
- D. Debugging
- Index
Product information
- Title: Think Java, 2nd Edition
- Author(s):
- Release date: November 2019
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781492072454
You might also like
book
Tidy First?
Messy code is a nuisance. "Tidying" code, to make it more readable, requires breaking it up …
book
Grokking Algorithms
Grokking Algorithms is a friendly take on this core computer science topic. In it, you'll learn …
book
Java Challenges: 100+ Proven Tasks that Will Prepare You for Anything
Expand your knowledge of Java with this entertaining learning guide, which features 100+ exercises and programming …
book
Java: A Beginner's Guide, Ninth Edition, 9th Edition
A practical introduction to Java programming—fully revised for the latest version, Java SE 17 Thoroughly updated …