E. Reed Doke, Bill C. Hardgrave, Richard A. Johnson9780521546843, 0521546842
Table of contents :
Team-kB……Page 1
Contents……Page 9
Introduction……Page 17
Objectives……Page 19
History and Overview of Java……Page 20
The Popularity of Java……Page 22
Java Is Simple……Page 24
Java Is Object-Oriented……Page 25
Java Is Portable……Page 26
Will Java Replace COBOL?……Page 28
How to Use This Book……Page 32
Summary of Key Points in Chapter 1……Page 34
Bibliography……Page 35
Objectives……Page 37
History of OO……Page 38
Objects……Page 40
Classes……Page 41
Diagramming Classes and Objects……Page 42
Class Relationships……Page 44
Inheritance……Page 45
Aggregation……Page 48
Association……Page 50
Object Communication……Page 51
Polymorphism……Page 53
Dynamic Binding……Page 54
Summary of Key Points in Chapter 2……Page 55
Bibliography……Page 56
Objectives……Page 57
A Class Program……Page 58
Listing 3.1: Customer.java……Page 60
Writing Comments in Java……Page 63
Naming Rules and Conventions……Page 65
Creating Objects……Page 66
Listing 3.2: Customer.java……Page 69
Invoking Methods……Page 70
Listing 3.3: CustomerProcessor.java……Page 72
Listing 3.4: Account.java……Page 74
Listing 3.5: CheckingAccount.java……Page 76
Listing 3.6: AccountProcessor.java……Page 78
Summary of Key Points in Chapter 3……Page 80
Objectives……Page 82
COBOL Picture Clause……Page 83
Defining Java Variables……Page 84
Writing Java Literals……Page 86
The Scope of Variables……Page 87
String Variables……Page 88
Listing 4.1: StringDemo.java……Page 90
Changing Variable Types……Page 92
Listing 4.2: CastDemo.java……Page 93
Variables for Community National Bank……Page 95
Summary of Key Points in Chapter 4……Page 96
Objectives……Page 98
Exceptions……Page 99
Listing 5.1: try-catch Structure……Page 101
Listing 5.2: ArithmeticExceptionDemo.java……Page 102
Custom Exception Classes……Page 103
Listing 5.3: CheckingAccount.java with NSFException……Page 105
Listing 5.4: AccountProcessor.java with try-catch……Page 107
A Review of Primitive Data Types……Page 108
Wrapper Classes……Page 109
Listing 5.5: WrapperDemo.java……Page 112
Arithmetic Operators……Page 114
The Math Class……Page 115
Listing 5.6: MathClassDemo.java……Page 119
The NumberFormat Class……Page 120
Listing 5.7: NumberFormatDemo.java……Page 121
Summary of Key Points in Chapter 5……Page 123
Objectives……Page 124
The if Statement……Page 125
Using the else Clause……Page 128
Nested if Statements……Page 130
Writing Compound Conditions……Page 131
Java’s Conditional Operator……Page 132
Condition Names……Page 133
Computing the Service Charge with if Statements……Page 134
Listing 6.1: COBOL Service Charge Computation Using IF Statements……Page 135
Listing 6.2: ComputeServiceCharge method Using if Statements……Page 136
Case Structure: COBOL EVALUATE and Java switch……Page 137
Listing 6.3: COBOL Service Charge Computation Using EVALUATE……Page 139
Listing 6.4: Java Service Charge Computation Using switch……Page 141
Summary of Key Points in Chapter 6……Page 142
Objectives……Page 145
The COBOL PERFORM Statement……Page 146
The Java while Statement……Page 148
Listing 7.1: WhileLoopDemo.java……Page 151
The Java do Statement……Page 153
Listing 7.2: DoLoopDemo.java……Page 155
The Java for Statement……Page 156
Listing 7.3: ForLoopDemo.java……Page 158
Nested Loops……Page 159
Java break and continue Statements……Page 161
Producing a Loan Amortization Schedule……Page 162
Listing 7.4: Amortizer.java……Page 163
Summary of Key Points in Chapter 7……Page 165
Objectives……Page 167
Declaring One-Dimensional Arrays……Page 168
Populating One-Dimensional Arrays……Page 171
Creating String Arrays……Page 173
Listing 8.1: OneDimArrayDemo.java……Page 174
Declaring Two-Dimensional Arrays……Page 176
Populating Two-Dimensional Arrays……Page 178
Listing 8.2: TwoDimArrayDemo.java……Page 179
Passing Arrays as Arguments……Page 182
Searching Arrays……Page 183
Listing 8.3: FindZipCode.java……Page 184
Listing 8.4: ZipCodeProcessor.java……Page 185
Summary of Key Points in Chapter 8……Page 187
Objectives……Page 189
Java’s I- O Class Library (java.io)……Page 190
Sequential File I-O……Page 191
Listing 9.1: SequentialFileDemo.java……Page 195
Database Access……Page 197
Listing 9.2: COBOL SQL Example……Page 198
Listing 9.3: DatabaseDemo.java……Page 204
Object Serialization……Page 205
Listing 9.4: ObjectSerializationDemo.java……Page 209
Summary of Key Points in Chapter 9……Page 211
Objectives……Page 213
Java’s Swing Components……Page 214
Event-Driven Programming……Page 215
Listing 10.1—CustomerGUIOne.java……Page 217
Listing 10.2: CustomerGUITwo.java……Page 219
JTextField: Adding Text Fields to a Window……Page 221
Listing 10.3—CustomerGUIThree.java……Page 222
Listing 10.4—CustomerGUIFour.java……Page 225
How Java Handles Events……Page 229
Improving the Window Layout……Page 230
Listing 10.5: CustomerGUIFive.java……Page 231
Listing 10.6—CustomerGUISix.java……Page 236
Writing Applets……Page 241
Summary of Key Points in Chapter 10……Page 243
Objectives……Page 245
Developing Object-Oriented Systems……Page 246
OO Methodologies……Page 247
OO Analysis……Page 248
OO Design……Page 249
Three-Tier Design……Page 251
Architecture Issues……Page 262
Performance Issues……Page 263
Summary of Key Points in Chapter 11……Page 264
Bibliography……Page 265
Glossary……Page 267
Index……Page 276
Reviews
There are no reviews yet.