Java程序设计导论:英文版

Java程序设计导论:英文版
作 者: Daniel Liang
出版社: 机械工业出版社
丛编项: 经典原版书库
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: Java
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

  Y.DanielLiang普度大学终身教授,阿姆斯特朗亚特兰大州立大学计算机科学系教授。他所编写的Java教程在美国大学Java课程中采用率最高,同时他还兼任PrenticeHallJava系列丛书编辑。相关图书80X86汇编语言与计算机体系结构计算机体系结构:量化研究方法:第3版分布式系统概念设计调和分析导论(英文第三版)人工智能:智能系统指南(英文版)第二版电力系统分析(英文版·第2版)面向计算机科学的数理逻辑:系统建模与推理(英文版·第2版)Java2专家导引(英文版·第3版)复分析基础及工程应用(英文版.第3版)机器视觉教程(英文版)(含盘)支持向量机导论(英文版)电子设计自动化基础(英文版)Java教程(英文版·第2版)软件需求管理:用例方法(英文版·第2版)数字通信导论离散事件系统仿真(英文版·第4版)复杂SoC设计(英文版)基于FPGA的系统设计(英文版)基于用例的面向方面软件开发(英文版)Linux内核编程必读-经典原版书库实分析和概率论-经典原版书库(英文版.第2版)软件过程改进(英文版)计算机科学概论(英文版·第2版)数学规划导论英文版抽样理论与方法(英文版)数据挖掘:实用机器学习技术(英文版·第2版)UML参考手册(第2版)UML参考手册(英文版·第2版)计算理论导引实用软件工程(英文版)计算机取证(英文版)EffectiveC#(英文版)UNIX教程(英文版·第2版)软件测试(英文版第2版)设计模式精解(英文版第2版)

内容简介

本书以J2SE 5.0版本为基础,采用“基本原理优先”策略,循序渐进地介绍了关键概念,并通过大量实例向读者展示了面向对象程序设计的思想。另外,本书还全面且深入地覆盖了一些高级主题,包括GUI应用程序、异常处理applet、I/O等。本书的主要特点 ●本书是核心版 (Core Version),英文原书还有定制版 (Custom Version) 和完全版 (Comprehensive Version) 。 ●在每个实例中都包括问题解决方案的详细步骤。 ●在作者的网站http://www.prenhall.com/liang/)中还提供了1000多个自测练习题。 ●包括面向对象程序设计的深入论述。 ●覆盖了Level I Java认证考试所需的大部分主题。 ●包括GUI程序设计的扩展实例。 ●覆盖了部分高级Java主题。新特性 ●为方便初学者,适当地介绍了J2SE 5.0的特性。包括:◆java.util.Scanner类。◆格式化输出。◆循环的增强。◆基本的封装和非封装。 ●更好地介绍了基本数据类型、表达、循环、方法和数组。 ●面向对象软件开发部分介绍了UML方法和重用组件的概念。

图书目录

PART I FUNDAMENTALS OF PROGRAMMING

Chapter 1 Introduction to Computers, Programs,and Java

1.1 Introduction

1.2 What Is a Computer?

1.3 Programs

1.4 Operating Systems

1.5 Number Systems (Optional)

1.6 Java, World Wide Web, and Beyond

1.7 Characteristics of Java (Optional)

1.8 The Java Language Specification, API, JDK, and IDE

1.9 A Simple Java Program

1.10 Creating, Compiling, and Executing a Java Program

1.11 Anatomy of the Java Program

1.12 Displaying Text in a Message Dialog Box

Chapter 2 Primitive Data Types and Operations

2.1 Introduction

2.2 Writing Simple Programs

2.3 Identifiers

2.4- Variables

2.5 Assignment Statements and Assignment Expressions

2.6 Constants

2.7 Numeric Data Types and Operations

2.8 Numeric Type Conversions

2.9 Character Data Type and Operations

2.10 boolean DataType and Operations

2.11 Operator Precedence and Associativity

2.12 Operand Evaluation Order

2.13 The String Type

2.14 Getting Input from Input Dialogs

2.15 Case Studies

2.16 Getting Input from the Console (Optional)

2.17 Formatting Output (JDK 1.5 Feature)

2.18 Programming Style and Documentation

2.19 Programming Errors

2.20 Debugging

Chapter 3 Control Statements

3.1 Introduction

3.2 Selection Statements

3.3 Loop Statements

3.5 Which Loop to Use?

3.6 Using the Keywords break and continue

3.7 Case Studies

Chapter 4 Methods

4.1 Introduction

4.2 Creating a Method

4.3 Calling a Method

4.4 Passing Parameters by Values

4.5 Overloading Methods

4.6 The Scope of Local Variables

4.7 Method Abstraction

4.8 The Math Class

4.9 Case Study: Generating Random Characters

4.10 Stepwise Refinement (Optional)

4.11 Recursion (Optional)

4.12 Packages (Optional)

Chapter 5 Arrays

5.1 Introduction

5.2 Array Basics

5.3 Copying Arrays

5.4 Passing Arrays to Methods

5.5 Returning an Array from a Method

5.6 Sorting Arrays

5.7 Searching Arrays

5.8 Multidimensional Arrays

PART II OBJECT-ORIENTED PROGRAMMING

Chapter 6 Objects and Classes

6.1 Introduction

6.2 Defining Classes for Objects

6.3 Constructing Objects Using Constructors

6.4 Accessing Objects via Reference Variables

6.5 Using Classes from the Java Library

6.6 Visibility Modifiers, Accessors, and Mutators

6.7 Data Field Encapsulation

6.8 Immutable Objects and Classes

6.9 Passing Objects to Methods

6.10 Static Variables, Constants, and Methods

6.11 The Scope of Variables

6.12 The this Keyword

6.13 Array of Objects

6.14 Class Abstraction and Encapsulation

6.15 Case Study: The Loan Class

6.16 Case Study: The StackofIntegers Class (Optional)

6.17 Inner Classes

Chapter 7 Strings

7.1 Introduction

7.2 The String Class

7.3 The Character Class

7.4 The 8tringBuffer Class

7.5 The StringTokenizer Class

7.6 The Scanner Class (JDK 1.5 Feature)

7.7 Implementing MyInput Using Scanner

7.8 Command-Line Arguments

Chapter 8 Inheritance and Polymorphism

8.1 Introduction

8.2 Superclasses and Subclasses

8.3 Using the Keyword super

8.4 Overriding Methods

8.5 The Object class

8.6 Polymorphism, Dynamic Binding, and Generic Programming

8.7 Casting Objects and the ~nstanceo~ Operator

8.8 Hiding Data Fields and Static Methods (Optional)

8.9 The protected Data and Methods

8.10 The final Classes, Methods, and Variables

8.11 The finalize, clone, and getClass Methods (Optional)

8.12 Initialization Blocks (Optional)

Chapter 9 Abstract Classes and Interfaces

9.1 Introduction

9.2 Abstract Classes

9.3 The Calendar and Greg0rianCalendar classes

9.4 Interfaces

9.5 Processing Primitive Data Type Values as Objects

9.6 Automatic Conversion Between Primitive Types and Wrapper Class Types (JDK 1.5 Feature)

Chapter 10 Obiect-Oriented Modeling

10.1 Introduction

10.2 The Software Development Process

10.3 Discovering Relationships Among Classes

10.4 Case Study: A Class Design Example

10.5 Case Study: The Rational Class

10.6 Class Design Guidelines

10.7 Modeling Dynamic Behavior Using Sequence Diagrams and Statecharts (Optional)

10.8 Framework-Based Programming Using Java API

PART III GUI PROGRAMMING

Chapter 11 Getting Started with GUI Programming

11.1 Introduction

11.2 GUI Components

11.3 The Java GUI API

11.4 Frames

11.5 Layout Managers

11.6 The colot Class

11.7 The Font Class

11.8 Using Panels as Subcontainers

11.9 Drawing Graphics on Panels

11.10 Centering a Display Using the FontMetrics Class

11.11 Case Study: The MessagePanel Class

11.12 Case Study: The StillClock Class (Optional)

Chapter 12 Event-Driven Programming

12.1 Introduction

12.2 Event and Event Source

12.3 Listeners, Registrations, and Handling Events

12.4 Mouse Events

12.5 Keyboard Events

12.6 The Timer Class (Optional)

Chapter 13 Creating User Interfaces

13.1 Introduction

13.2 Common Features of Swing GUI Components

13.3 Buttons

13.4 Check Boxes

13.5 Radio Buttons

13.6 Labels

13.7 Text Fields

13.8 Text Areas

13.9 Combo Boxes

13.10 Lists

13.11 Scroll Bars

13.12 Sliders

13.13 Creating Multiple Windows

Chapter 14 Applets, Images, and Audio

14.1 Introduction

14.2 The Applet Class

14.3 The dAppler Class

14.4 The HTML File and the <applet> Tag

14.5 Passing Strings to Applets

14.6 Enabling Applets to Run as Applications

14.7 Case Study: TicTacToe (Optional)

14.8 Case Study: Bouncing Ball (Optional)

14.8 The URL Class (Optional)

14.9 Displaying Images (Optional)

14.10 Case Study: The ImageViewer Component (Optional)

14.11 Case Study: The Image Animations (Optional)