Macros

Páginas: 1155 (288717 palabras) Publicado: 15 de febrero de 2011
Contents

Preface 1
1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19

xxxv 1
2 7 7 8 9 10 11 12 13 14 14 15 16 19 22 26 28 41 45

Introduction to Computers, the Internet and the Web
Introduction What Is a Computer? Computer Organization Evolution of Operating Systems Personal, Distributed and Client/Server Computing Machine Languages, AssemblyLanguages and High-Level Languages History of C++ History of Java Java Class Libraries Other High-Level Languages Structured Programming The Internet and the World Wide Web Basics of a Typical Java Environment General Notes about Java and This Book Thinking About Objects: Introduction to Object Technology and the Unified Modeling Language Discovering Design Patterns: Introduction Tour of the Book(Optional) A Tour of the Case Study on Object-Oriented Design with the UML (Optional) A Tour of the “Discovering Design Patterns” Sections

2
2.1 2.2

Introduction to Java Applications
Introduction A First Program in Java: Printing a Line of Text 2.2.1 Compiling and Executing your First Java Application
© Copyright 2002 by Prentice Hall. All Rights Reserved.

55
56 56 61

VIII

Contents2.3

2.4 2.5 2.6 2.7 2.8 2.9

Modifying Our First Java Program 2.3.1 Displaying a Single Line of Text with Multiple Statements 2.3.2 Displaying Multiple Lines of Text with a Single Statement Displaying Text in a Dialog Box Another Java Application: Adding Integers Memory Concepts Arithmetic Decision Making: Equality and Relational Operators (Optional Case Study) Thinking About Objects:Examining the Problem Statement

62 62 63 65 69 75 76 79 87

3
3.1 3.2

Introduction to Java Applets
Introduction Sample Applets from the Java 2 Software Development Kit 3.2.1 The TicTacToe Applet 3.2.2 The DrawTest Applet 3.2.3 The Java2D Applet A Simple Java Applet: Drawing a String 3.3.1 Compiling and Executing WelcomeApplet Two More Simple Applets: Drawing Strings and Lines Another JavaApplet: Adding Floating-Point Numbers Viewing Applets in a Web Browser 3.6.1 Viewing Applets in Netscape Navigator 6 3.6.2 Viewing Applets in Other Browsers Using the Java Plug-In Java Applet Internet and World Wide Web Resources (Optional Case Study) Thinking About Objects: Identifying the Classes in a Problem Statement135

105
106 107 107 111 112 112 118 120 123 130 131 131 134

3.3 3.4 3.5 3.63.7 3.8

4
4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 4.11 4.12 4.13 4.14

Control Structures: Part 1
Introduction Algorithms Pseudocode Control Structures The if Selection Structure The if/else Selection Structure The while Repetition Structure Formulating Algorithms: Case Study 1 (Counter-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 2(Sentinel-Controlled Repetition) Formulating Algorithms with Top-Down, Stepwise Refinement: Case Study 3 (Nested Control Structures) Assignment Operators Increment and Decrement Operators Primitive Data Types (Optional Case Study) Thinking About Objects: Identifying Class Attributes
© Copyright 2002 by Prentice Hall. All Rights Reserved.

148
149 149 150 150 153 155 159 160 165 173 178 179 182 183 Contents

IX

5
5.1 5.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.10 5.11

Control Structures: Part 2
Introduction Essentials of Counter-Controlled Repetition The for Repetition Structure Examples Using the for Structure The switch Multiple-Selection Structure The do/while Repetition Structure Statements break and continue Labeled break and continue Statements Logical Operators StructuredProgramming Summary (Optional Case Study) Thinking About Objects: Identifying Objects’ States and Activities

197
198 198 201 205 210 215 218 220 222 229 234

6
6.1 6.2 6.3 6.4 6.5 6.6 6.7 6.8 6.9 6.10 6.11 6.12 6.13 6.14 6.15 6.16 6.17

Methods
Introduction Program Modules in Java Math Class Methods Methods Method Definitions Argument Promotion Java API Packages Random-Number Generation...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Macro
  • macros
  • Macro
  • macro
  • Macro
  • Macro
  • Macro
  • Macro

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS