Programming and Problem Solving with Java

(やまだぃちぅ) #1
761

If-then-else-if structure, 468
if-(then) statement, 431
Images, 668
Immutable classes, 243
Immutable objects, 242, 243, 257, 290, 352,
536
Implementation
differences in, 8
in Java, 387
Implementation phase, 5, 6, 50, 190, 197,
270, 271, 284
Implementing a test plan, 193
implements clause, 356, 388
implements Serializableclause, 388
Implicit type coercion, 619
Implicit type conversion, 117, 157, 512
import declaration, 46, 52, 72, 88, 140,
602–603
and compilation units, 295, 296
importkeyword, 52
Incomesclass, 248, 250
Incrementation operator (++), 224
Incrementing loop control variable, 223,
224
Increment operators (++), 111, 112, 141,
448, 449 , 450
Increment statement, 112
Indentation, 141
for blocks, 74
and code formatting, 124
and dangling else, 177
and if form, 172, 173
and if statement, 168
with nested if statements, 174, 175
Indexes
and array components, 513
as constant, a variable, and an arbitrary
expression, 490
and multidimensional arrays, 620, 621
and printing values in array, 648, 649
with semantic content, 501
IndexExpression, 489
Index expressions, and two-dimensional
arrays, 583
indexOfmethod, 126–127, 129, 216
Index values, 484, 512, 513
Inequality (!=), 158, 181
infile.dat, 219


Infinite loops, 7, 225, 233, 254, 447
Infinite recursion, 638
Infinity, 480
Infinity value, 110, 169
Information, 5
Information hiding, 292
Inherit, and protected access, 343, 344
Inheritance, 25, 285, 325, 326, 336, 337, 367
analogy on, 326
and object-oriented design process,
328–333
Inheritance hierarchy, for AWT and Swing,
661
Init, and for statement, 446, 447
Initialization, 589–590, 662
Initializer, 488
Initializer expressions, 63
Initializer lists
arrays declared/created with, 488
and two-dimensional arrays, 584–586
Initializing loop control variable, 223
Initial responsibilities, 280
CRC card with, 281
initmethod, 660, 662, 676, 677
Input, 67–70, 70
devices, 15, 20, 21, 22, 34
if-else statements and validity of, 169
labels, 672
inputField, 397
Input file, and editor, 214
Input/output (I/O)
devices, 21, 22
interactive, 70
noninteractive, 131, 255
InputStreamclass, 68
InputStream object, 68
InputStreamReaderclass, 68, 88, 100, 213
InputStreamReader object, 69
inputStr, 444
Input strings, converting to numeric
value, 140
Input text fields, and buttons, 671
insert algorithm, and Big-O notation, 558
Inserting, list items, 527, 528
Insertion algorithm, 572
insert constructor, 544
insertmethod, 525, 572
and lists, 534
Free download pdf