Y. Daniel Liang 普度大學(xué)終身教授,阿姆斯特朗亞特蘭大州立大學(xué)計(jì)算機(jī)科學(xué)系教授。他所編寫(xiě)的Java教程在美國(guó)大學(xué)Java課程中采用率極高,同時(shí)他還兼任Prentice Hall Java系列叢書(shū)的編輯。
圖書(shū)目錄
Chapter 1 Introduction to Computers, Programs, and Java I.I Introduction l.2 What is a Computer? 1.3 Programs 1.4 Operating Systems 1.5 Java, World Wide Web, and Beyond 1.6 The Java Language Specification, APU JDK, and IDE 1.7 A Simple Java Program 1.8 Creating, Compiling. and Executing a Java Program 1.9 (GUI) Displaying Text in a Message Dialog Box Chapter 2 Elementary Programming 2.1 Introduction 2.2 Writing Simple Programs 2.3 Reading Input from the Console 2.4 Identifiers 2.5 Variables 2.6 Assignment Statements and Assignment Expressions 2.7 Named Constants 2.8 Numeric Data Types and Operations 2.9 Problem. Displaying the Current Time 2.10 Shorthand Operators 2.11 Numeric Type Conversions 2.12 Problem: Computing Loan Payments 2.13 Character Data Type and Operations 2.14 Problem: Counting Monetary Units 2.15 The String Type 2.16 Programming Style and Documentation 2.17 Programming Errors 2.18 (GUI) Getting Input from Input Dialogs Chapter 3 Selections 3.1 Introduction 3.2 boolean Data Type 3.3 Problem: A Simple Math Learning Tool 3.4 if Statements 3.5 Problem: Guessing Birthdays 3.6 Two Way if Statements 3.7 Nested if Statements 3.8 Common Errors in Selection Statements 3.9 Problem: an Improved Math Learning Tool 3.10 Problem: Computing Body Mass Index 3.11 Problem: Computing Taxes 3.12 Logical Operators 3.13 Problem: Determining Leap Year 3.14 Probiem: Lottery 3.15 switch Statements 3.16 Conditional Expressions 3.17 Formatting Console Output 3.18 Operator Pfecedence and Associativity 3.19 (GUI) Confirmation Dialogs Chapter 4 Loops 4.1 Introduction 4.2 The while Loop 4.3 The do-while Loop 4.4 The for Loop 4.5 Which Loop to Use? 4.6 Nested Loops 4.7 Minimizing Numeric Errors 4.8 Case Studies 4.9 Keywords breakand continue 4.10 (GUI)Controlling a Loop with a Confirmation Dialog Chapter 5 Methods 5.1 Introduction 5.2 Defining a Method 5.3 Callinga Method 5.4 void Method Example 5.5 Passing Parameters by Values 5.6 Modularizing Code 5.7 Problem: Comrerting Decimals to Hexadecimals 5.8 Ovedoading Methods 5.9 The Scope of Variables 5.10 The Math Class 5.11 Case Study: Generating Random Charaaers S.l2 Method Abstraction and Stepwise Refinement Chapter 6 Single-Dimcnsional Arrays 6.1 Introduction 6.2 Array Basics 6.3 Problem. Lotto Numbers 6.4 Problem: Deck of Cards 6.5 Copying Arrays …… Chapter 7 Multidimensional Arrays Chapter 8 objects and Classes Chapter 9 Strings and Text I/O Chapter 10 Thinking in objects Chapter 11 Inheritance and Polymorphism Chapter 12 GUI Basics Chapter 13 Exception Handling Chapter 14 Abstract Classes and Interfaces Chapter 15 Graphics Chapter 16 Event-Drivcn Programming Chapter 17 Creating Graphical User Interfaces Chapter 18 Applcts and Multimedla Chapter 19 Btnary I/O Chapter 20 Recursion Chapter 21 Generics Chapter 22 Java Collections Framework Chapter 23 Algorithm Efficiency Chapter 24 Sorting Chapter 25 Lists, Stacks, Clueucs, and Priority Queues Chapter 26 Binary Search Trees Chapter 27 Graphs and Applfcahons Chapter 28 Weighted Graphs and Applications Chapter 29 Multithrcading Chapter 30 Networking Chapter 31 Intcrnationalization Chapter 32 Java Bcans and Bean Events Chapter 33 Containers, Layout Managers, and Borders Chapter 34 Menus,Toolbars, and Dialogs Chapter 35 MVC and Swing Models Chapter 36 JTable and JTree Chapter 37 Java Database Programming APPENDIXES INDEX