Library Hours
Monday to Friday: 9 a.m. to 9 p.m.
Saturday: 9 a.m. to 5 p.m.
Sunday: 1 p.m. to 9 p.m.
Naper Blvd. 1 p.m. to 5 p.m.
     
Limit search to available items
Results Page:  Previous Next
Author Downey, Allen, author.

Title Think Java : how to think like a computer scientist / Allen B. Downey and Chris Mayfield.

Edition First edition.
Publication Info. Sebastopol, CA : O'Reilly Media, 2016.
QR Code
Description 1 online resource : illustrations
Series Online access: Center for Open Education Open Textbook Library.
Note Includes index.
Summary 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.
Contents Cover; Copyright; Table of Contents; Preface; The Philosophy Behind the Book; Object-Oriented Programming; Appendixes; Using the Code Examples; Conventions Used in This Book; O'Reilly Safari; How to Contact Us; Acknowledgments; Chapter 1. The Way of the Program; What Is Programming?; What Is Computer Science?; Programming Languages; The Hello World Program; Displaying Strings; Escape Sequences; Formatting Code; Debugging Code; Vocabulary; Exercises; Chapter 2. Variables and Operators; Declaring Variables; Assignment; State Diagrams; Printing Variables; Arithmetic Operators
Floating-Point NumbersRounding Errors; Operators for Strings; Composition; Types of Errors; Vocabulary; Exercises; Chapter 3. Input and Output; The System Class; The Scanner Class; Program Structure; Inches to Centimeters; Literals and Constants; Formatting Output; Centimeters to Inches; Modulus Operator; Putting It All Together; The Scanner Bug; Vocabulary; Exercises; Chapter 4. Void Methods; Math Methods; Composition Revisited; Adding New Methods; Flow of Execution; Parameters and Arguments; Multiple Parameters; Stack Diagrams; Reading Documentation; Writing Documentation; Vocabulary
ExercisesChapter 5. Conditionals and Logic; Relational Operators; Logical Operators; Conditional Statements; Chaining and Nesting; Flag Variables; The return Statement; Validating Input; Recursive Methods; Recursive Stack Diagrams; Binary Numbers; Vocabulary; Exercises; Chapter 6. Value Methods; Return Values; Writing Methods; Method Composition; Overloading; Boolean Methods; Javadoc Tags; More Recursion; Leap of Faith; One More Example; Vocabulary; Exercises; Chapter 7. Loops; The while Statement; Generating Tables; Encapsulation and Generalization; More Generalization; The for Statement
The do-while Loopbreak and continue; Vocabulary; Exercises; Chapter 8. Arrays; Creating Arrays; Accessing Elements; Displaying Arrays; Copying Arrays; Array Length; Array Traversal; Random Numbers; Traverse and Count; Building a Histogram; The Enhanced for Loop; Vocabulary; Exercises; Chapter 9. Strings and Things; Characters; Strings Are Immutable; String Traversal; Substrings; The indexOf Method; String Comparison; String Formatting; Wrapper Classes; Command-Line Arguments; Vocabulary; Exercises; Chapter 10. Objects; Point Objects; Attributes; Objects as Parameters; Objects as Return Types
Mutable ObjectsAliasing; The null Keyword; Garbage Collection; Class Diagrams; Java Library Source; Vocabulary; Exercises; Chapter 11. Classes; The Time Class; Constructors; More Constructors; Getters and Setters; Displaying Objects; The toString Method; The equals Method; Adding Times; Pure Methods and Modifiers; Vocabulary; Exercises; Chapter 12. Arrays of Objects; Card Objects; Card toString; Class Variables; The compareTo Method; Cards Are Immutable; Arrays of Cards; Sequential Search; Binary Search; Tracing the Code; Recursive Version; Vocabulary; Exercises; Chapter 13. Objects of Arrays
Subject Java (Computer program language)
Computer programming.
Java (Langage de programmation)
Programmation (Informatique)
computer programming.
Computer programming
Java (Computer program language)
Added Author Mayfield, Chris (Computer scientist), author.
Other Form: Erscheint auch als: Druck-Ausgabe
ISBN 9781491929537 (electronic bk.)
1491929537 (electronic bk.)
9781491929568 (electronic bk.)
9781491929513 (electronic bk.)
1491929510 (electronic bk.)
1491929561
9781491929568
Patron reviews: add a review
Click for more information
EBOOK
No one has rated this material

You can...
Also...
- Find similar reads
- Add a review
- Sign-up for Newsletter
- Suggest a purchase
- Can't find what you want?
More Information