- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
ALERTcourse syllabus to ensure that you select the correct ISBN. Several versions of Pearson's MyLab & Mastering products exist for each title, including customized versions for individual schools, and registrations are not transferable. In addition, you may need a CourseID, provided by your instructor, to register for and use Pearson's MyLab & Mastering products.PackagesAccess codes for Pearson's MyLab & Mastering products may not be included when purchasing or renting from companies other than Pearson; check with the seller before completing your purchase.Used or rental booksIf you rent or purchase a used book with an access code, the access code may have been redeemed previously and you may have to purchase a new access code.Access codesAccess codes that are purchased from sellers other than Pearson carry a higher risk of being either the wrong ISBN or a previously redeemed code. Check with the seller prior to purchase.-- This package contains an access card for MyProgrammingLab and a Pearson eText student access code card for Java Software Solutions, 7e.Java Software Solutions teaches a foundation of programming techniques to foster well-designed object-oriented software. Heralded for its integration of small and large realistic examples, this worldwide best-selling text emphasizes building solid problem-solving and design skills to write high-quality programs.MyProgrammingLab is Pearson's new online homework and assessment tool.
Contents
Preface vChapter 1 Introduction 11.1 Computer Processing 2Software Categories 3Digital Computers 4Binary Numbers 71.2 Hardware Components 10Computer Architecture 11Input/Output Devices 12Main Memory and Secondary Memory 13The Central Processing Unit 171.3 Networks 20Network Connections 20Local-Area Networks andWide-Area Networks 22The Internet 23The World Wide Web 24Uniform Resource Locators 251.4 The Java Programming Language 26A Java Program 27Comments 29Identifiers and Reserved Words 31White Space 331.5 Program Development 36Programming Language Levels 36Editors, Compilers, and Interpreters 38Development Environments 40Syntax and Semantics 41Errors 421.6 Object-Oriented Programming 44Problem Solving 45Object-Oriented Software Principles 46Chapter 2 Data and Expressions 572.1 Character Strings 58The print and println Methods 58String Concatenation 60Escape Sequences 632.2 Variables and Assignment 65Variables 65The Assignment Statement 67Constants 692.3 Primitive Data Types 71Integers and Floating Points 71Characters 73Booleans 742.4 Expressions 75Arithmetic Operators 75Operator Precedence 76Increment and Decrement Operators 80Assignment Operators 812.5 Data Conversion 83Conversion Techniques 852.6 Interactive Programs 87The Scanner Class 872.7 Graphics 92Coordinate Systems 92Representing Color 942.8 Applets 95Executing Applets Using the Web 982.9 Drawing Shapes 99The Graphics Class 99Software Failure: NASA Mars Climate Orbiter and Polar Lander 111Chapter 3 Using Classes and Objects 1133.1 Creating Objects 114Aliases 1163.2 The String Class 1183.3 Packages 122The import Declaration 1243.4 The Random Class 1263.5 The Math Class 1293.6 Formatting Output 132The NumberFormat Class 132The DecimalFormat Class 134The printf Method 1353.7 Enumerated Types 1383.8 Wrapper Classes 141Autoboxing 1433.9 Components and Containers 143Frames and Panels 1443.10 Nested Panels 1483.11 Images 151Chapter 4 Writing Classes 1594.1 Classes and Objects Revisited 1604.2 Anatomy of a Class 162Instance Data 167UML Class Diagrams 1674.3 Encapsulation 169Visibility Modifiers 170Accessors and Mutators 1714.4 Anatomy of a Method 172The return Statement 174Parameters 175Local Data 175Bank Account Example 1764.5 Constructors Revisited 1814.6 Graphical Objects 1824.7 Graphical User Interfaces 1914.8 Buttons 1924.9 Text Fields 196Software Failure: Denver Airport Baggage Handling System 205Chapter 5 Conditionals and Loops 2075.1 Boolean Expressions 208Equality and Relational Operators 209Logical Operators 2105.2 The if Statement 213The if-else Statement 216Using Block Statements 219Nested if Statements 2235.3 Comparing Data 226Comparing Floats 226Comparing Characters 227Comparing Objects 2285.4 The while Statement 230Infinite Loops 234Nested Loops 236The break and continue Statements 2395.5 Iterators 241Reading Text Files 2425.6 The ArrayList Class 2455.7 Determining Event Sources 2485.8 Check Boxes and Radio Buttons 251Check Boxes 251Radio Buttons 255Software Failure: Therac-25 267Chapter 6 More Conditionals and Loops 2696.1 The switch Statement 2706.2 The Conditional Operator 2746.3 The do Statement 2756.4 The for Statement 279The for-each Loop 282Comparing Loops 2846.5 Drawing with Loops and Conditionals 2856.6 Dialog Boxes 291Chapter 7 Object-Oriented Design 3017.1 Software Development Activities 3027.2 Identifying Classes and Objects 303Assigning Responsibilities 3057.3 Static Class Members 305Static Variables 306Static Methods 3067.4 Class Relationships 310Dependency 310Dependencies Among Objectsof the Same Class 310Aggregation 316The this Reference 3207.5 Interfaces 322The Comparable Interface 327The Iterator Interface 3287.6 Enumerated Types Revisited 3297.7 Method Design 332Method Decomposition 333Method Parameters Revisited 3387.8 Method Overloading 3437.9 Testing 345Reviews 346Defect Testing 3467.10 GUI Design 3497.11 Layout Managers 350Flow Layout 352Border Layout 356Grid Layout 359Box Layout 3617.12 Borders 3657.13 Containment Hierarchies 369Software Failure: 2003 Northeast Blackout 377Chapter 8 Arrays 3798.1 Array Elements 3808.2 Declaring and Using Arrays 381Bounds Checking 384Alternate Array Syntax 389Initializer Lists 389Arrays as Parameters 3908.3 Arrays of Objects 3928.4 Command-Line Arguments 4028.5 Variable Length Parameter Lists 4048.6 Two-Dimensional Arrays 408Multidimensional Arrays 4128.7 Polygons and Polylines 413The Polygon Class 4168.8 Mouse Events 4188.9 Key Events 427Software Failure: LA Air Traffic Control 441Chapter 9 Inheritance 4439.1 Creating Subclasses 444The protected Modifier 447The super Reference 450Multiple Inheritance 4539.2 Overriding Methods 455Shadowing Variables 4579.3 Class Hierarchies 458The Object Class 460Abstract Classes 461Interface Hierarchies 4639.4 Visibility 4639.5 Designing for Inheritance 466Restricting Inheritance 4679.6 The Component Class Hierarchy 4689.7 Extending Adapter Classes 4719.8 The Timer Class 475Software Failure: Ariane 5 Flight 501 485Chapter 10 Polymorphism 48710.1 Late Binding 48810.2 Polymorphism via Inheritance 48910.3 Polymorphism via Interfaces 50210.4 Sorting 504Selection Sort 505Insertion Sort 511Comparing Sorts 51210.5 Searching 513Linear Search 513Binary Search 515Comparing Searches 51910.6 Designing for Polymorphism 51910.7 Event Processing 52110.8 File Choosers 52210.9 Color Choosers 52510.10 Sliders 527Chapter 11 Exceptions 53711.1 Exception Handling 53811.2 Uncaught Exceptions 53911.3 The try-catch Statement 540The finally Clause 54411.4 Exception Propagation 54511.5 The Exception Class Hierarchy 549Checked and Unchecked Exceptions 55211.6 I/O Exceptions 55311.7 Tool Tips and Mnemonics 55711.8 Combo Boxes 56411.9 Scroll Panes 56911.10 Split Panes 572Chapter 12 Recursion 58312.1 Recursive Thinking 584Infinite Recursion 584Recursion in Math 58512.2 Recursive Programming 586Recursion vs. Iteration 589Direct vs. Indirect Recursion 58912.3 Using Recursion 590Traversing a Maze 591The Towers of Hanoi 59612.4 Recursion in Graphics 601Tiled Pictures 601Fractals 604Chapter 13 Collections 61713.1 Collections and Data Structures 618Separating Interface from Implementation 61813.2 Dynamic Representations 619Dynamic Structures 619A Dynamically Linked List 620Other Dynamic List Representations 62513.3 Linear Data Structures 627Queues 627Stacks 62813.4 Non-Linear Data Structures 631Trees 631Graphs 63213.5 The Java Collections API 634Generics 634Appendix A Glossary 641Appendix B Number Systems 665Appendix C The Unicode Character Set 673Appendix D Java Operators 677Appendix E Java Modifiers 683Appendix F Java Coding Guidelines 687Appendix G Java Applets 693Appendix H Regular Expressions 695Appendix I Javadoc Documentation Generator 697Appendix J The PaintBox Project 703Appendix K GUI Events 715Appendix L Java Syntax 719Appendix M The Java Class Library 733Appendix N Answers to Self-Review Questions 735Index 789