Programming and Problem Solving with Java

(やまだぃちぅ) #1

766


Looping(continued)
and flow of control design, 233–235
general pattern of simple nested loop,
237–239
loop exit, 236
nested loops, 236–237
phases of loop execution, 223
subtasks, 229–233
and while statement, 221–222, 223
Looping control structures, 221
Looping statements, guidelines for choos-
ing, 448
Looping subtasks, 229–233
counting, 229–231
summing, 231–233
Loops, 18
for accessing components in three-
dimensional arrays, 592
for accessing components in two-
dimensional arrays, 592
and algorithms, 452
designing, 233, 235
doubly nested, 242
ending, 394
with multidimensional arrays, 619
parts of, 393
test plans and, 252–254
triply nested, 242
Loop termination conditions, and arrays
processing, 510
Loop test, 223
Loop-testing strategy, 252
Lotus 1–2–3, 523
Lovelace, Ada, 3, 338–339, 522
Lovelace, Lord William, 339
Lowercase letters, 59
in ASCII subset of Unicode character
set, 157
in Java, 48
and string comparison, 159
Low-level design stage, 191

M
Machine language (or machine code), 10,
12, 13, 34
Macintosh computer, 479

introduction of, 580
Magnetic drum memory, introduction of,
152
Magnetic tape drives, 21, 22
MailListclass, 132
mainmethod, 51, 70, 78, 88, 659, 677
application with, 71
and calculator case study, 414, 415
and ClassNotFoundException, 366
throws clause of, 357
and throws IOExceptionclause, 365
Maintenance phase, 6–9, 34
Manchester Mark I computer, 153
Mantissa, 596, 597
Marconi, Guglielmo, 40
Marked-up document, 668
Mark I, 443
Mark II, 443
Mark III, 443
Markup language, 668
Masterson, Earl, 210
MatExceptionclass, 612
Math.absmethod, 122, 293, 672
Mathclass, 120, 130
Mathematical Analysis of Logic, The(Boole),
164
Mathematical equality, difference
between assignment and, 110
Mathmethods, 122
Math.min, 128
Math.randommethod, 123
Math.sqrt, 122
Matrices, 605
Matrix addition, 605, 606
Matrixclass, 605, 612–615
CRC card for, 607
MatrixDriverclass, 616–618
Matrix manipulation case study, 605–618
brainstorming for, 605
internal data representation for, 607
responsibility algorithms for, 608–612
scenarios for, 606
testing for, 615–618
Matrix multiplication, 605, 606
Matrix object, 581
Matrix operations, 581
Free download pdf