Cargando…

Think Java : how to think like a computer scientist /

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 lear...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autores principales: Downey, Allen (Autor), Mayfield, Chris (Computer scientist) (Autor)
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Sebastopol, CA : O'Reilly Media, 2016.
Edición:First edition.
Colección:Online access: Center for Open Education Open Textbook Library.
Temas:
Acceso en línea:Texto completo (Requiere registro previo con correo institucional)
Tabla de Contenidos:
  • 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