Java 编程习题与解答(英文版)
作者 : (美)John R.Hubbard
出版日期 : 2002-08-01
ISBN : 7-111-10582-6
定价 : 28.00元
教辅资源下载
扩展信息
语种 : 英语
页数 : 268
开本 : 16开
原书名 : Shaum's Outlines Programming With Java
原出版社:
属性分类: 教材
包含CD :
绝版 : 已绝版
图书简介

Like all Schaum's Outline Series books, this is intended to be used primarily for self study, preferably in conjunction with a regular course in the fundamentals of computer science using the Java programming language.
  The book includes over 200 examples and problems. The author firmly believes that programming is learned best by practice, following a well-constructed collection of examples with complete explanations. This book is designed to provide that support.
  Source code for all the examples, solved problems, and supplementary problems in this book may be downloaded from the author's Web page:http://www. richmond. edu / ~hubbard/
  This site will also contain any corrections and addenda for the book.

图书前言

Like all Schaum's Outline Series books, this is intended to be used primarily for self study, preferably in conjunction with a regular course in the fundamentals of computer science using the Java programming language.
  The book includes over 200 examples and problems. The author firmly believes that programming is learned best by practice, following a well-constructed collection of examples with complete explanations. This book is designed to provide that support.
  Source code for all the examples, solved problems, and supplementary problems in this book may be downloaded from the author's Web page:http://www. richmond. edu / ~hubbard/
This site will also contain any corrections and addenda for the book.
  I wish to thank all my friends, colleagues, students, and the McGraw-Hill staff who have helped me with the critical review of this manuscript, including Eric Ciampa, Andrew Somers,Michael Somers, and Maureen Walker. Special thanks to Anita Hubbard for her advice, encouragement, and supply of creative problems for this book.
  
JOHN R. HUBBARD
Richmond, Virginia

图书目录

Chapter 1 Getting Started
l.l THE JAVA PROGRAMMING LANGUAGE
l.2 DOWNLOADING THE JAVA DEVELOPMENT KIT
l.3 INSTALLING THE JDK
l.4 CREATING AND RUNNING A PROGRAM IN MICROSOFT WINDOWS
l.5 TROUBLESHOOTING
l.6 ANALYSIS OF THE He11oworld PROGRAM
l.7 COMMENTS
l.8 PROGRAMS WITH INPUT
l.9 NUMERIC INPUT
l.l0 VARIABLES AND OBJECTS
l.ll ARIrnMEnC AND ASSIGNMENT OPERATORS
Cbapter 2 Strngs
2.l THE String CLASS
2.2 SUBSTRINGS
2.3 CHANGING CASE
2.4 CONCATENATION
2.5 LOCATING A CHARACTER WITHIN A STRING
2.6 REPLACING CHARACTERS IN A STRING
2.7 REPRESENTING A PRIMITIVE VALUE IN A STRING
2.8 SUMMARY OF THE String CLASS METHODS
2.9 THE StringBuffer CLASS
2.l0 SUMMARY OFTHE StringBuffer CLASS METHODS
Chapter 3 Selection
3.l THE if STATEMENT
3.2 THE if... e1se STATEMENT
3.3 THE if... e1se if... STATEMENT COMBINATION
3.4 NESTED CONDInONALS
3.5 COMPOUND STATEMENTS
3.6 OPERATORS
3.7 ORDER OF EVALUATION
3.8 boo1ean VARIABLES
3.9 THE CONDITIONAL OPERATOR
3.l0 ASSIGNMENT OPERATORS
3.ll THE switch STATEMENT
Chapter 4 Iteration
4.l THE for STATEMENT
4.2 THE whi1e STATEMENT
4.3 SOME NUMBER CRUNCHING
4.4 THE do.. .while STATEMENT
4.5 MORE NUMBER CRUNCHING
4.6 NESTED LOOPS
Chapter 5 Methods
5.l SIMPLE EXAMPLES
5.2 LOCAL VARIABLES
5.3 METHODS OFTEN INVOKE OTHER METHODS
5.4 METHODS THAT INVOKE THEMSELVES
5.5 boo1ean METHODS
5.6 void METHODS
5.7 OVERLOADING
Chapter 6 Classes
6.l CLASSES
6.2 DECLARATIONS
6.3 MODIFIERS
6.4 CONSTRUCTORS
6.5 COPY CONSTRUCTORS
6.6 DEFAULT CONSTRUCTORS
6.7 CLASS INVARlANTS
6.8 IDENTITY, EQUALITY, AND EQUIVALENCE
6.9 MORE CLASS INVARIANTS
6.l0 WRAPPER CLASSES
Cbapter 7 Composition and Inheritance
7.l COMPOSITION
7.2 RECURSIVECLASSES
7.3 INHERITANCE
7.4 OVERRIDING FIELDS AND METHODS
7.5 THE super KEYWORD
7.6 INHERITANCE VERSUS COMPOSITION
7.7 CLASS HIERARCHIES
7.8 THE Object CLASS
7.9 THE JAVA CLASS HIERARCHY
7.l0 THE c1one() AND equals () METHODS
Chapter 8 Arrays and Vectors
8.l CHARACTER ARRAYS
8.2 PROPERTIES OF ARRAYS IN JAVA
8.3 COPYING AN ARRAY
8.4 THE Vector CLASS
8.5 THE SIZE AND CAPACITY OF A Vector OBJECT
8.6 CHANGES TO THE Vector CLASS IN JAVA 1.2
8.7 TWO-DIMENSIONAL ARRAYS
Chapter 9 Graphics
9.l THE AWT LIBRARIES
9.2 THE Frame CLASS
9.3 THE Co1or CLASS
9.4 COMPONENTS
9.5 THE Button CLASS
9.6 MANAGING LAYOUTS
9.7 EVENT-DRIVEN PROGRAMMING
9.8 THE TextField CLASS
Chapter 10 Applets,Threads, and Exceptious
l0.l APPLETS
l0.2 THE Applet CLASS
10.3 THE Thread CLASS
l0.4 EXCEPTIONS
Appendix A Acronyms
Appendix B The JBuilder IDE
Appendix C The CodeWarrior IDE
Appendix D Computer Numbers
D.l THE FINITE AND THE INFINITE
D.2 NUMBERTYPES
D.3 RANGES OF INTEGER TYPES
D.4 INTEGER OVERFLOW
D.5 RANGES OF FLOATING-POINT TYPES
D.6 THE INFINITY AND NaN CONSTANTS
Appendix E Unicode
Appendix F References
Index


教学资源推荐
作者: 刘恒洋 杨宏雨 主编
作者: [美]布莱恩· W.克尼汉(Brian W. Kernighan),丹尼斯· M.里奇(Dennis M.Ritchie) 著
作者: 陈家骏 郑滔 编著
作者: [美] 丹尼尔·卡斯沃姆(Daniel Kusswurm) 著
参考读物推荐
作者: (美)Christian Johansen 著
作者: 邓  蔚