Programming and Problem Solving with Java

(やまだぃちぅ) #1
745

Alto personal computer, 431
ALU.SeeArithmetic/logic unit
Amazon.com, 658
Ambiguity, avoiding, 42
American National Standards Institute,
324
American Standard Code for Information
Interchange (ASCII), 9, 48
code, 324
and Unicode character set, 157
Analogy
on inheritance, 326
solving by, 25, 34, 291
Analysis, 270
of algorithms, 452–455
Analysis and specification, in problem-
solving phase, 6
Analytical Engine, 3, 338
Anderson, Harlan, 268
AND operation, and short-circuit evalua-
tion, 163
AND operator (&&), 161, 164, 481
Andreesen, Marc, 635
anglearray, 487
with values, 489
Angled brackets (<>), HTML tags within,
669
Anonymous objects, 69
AnswerSheetclass, 504–505, 506
AOL, 658
Apostrophes (‘), characters enclosed in, 49
Apple Computer Inc., 580
founding of, 478
legal debate between Microsoft and, 634
Macintosh introduced by, 580
Newton PDA introduced by, 635
Apple I computer, creation of, 478
Apple II computer, as standard for
personal computers, 478
Appletclass, 660, 662, 677
Applets, 6n.2, 658–679
applications contrasted with, 660
running, 667–670
for searching experiments case study,
671
writing, 661–667


Applet viewer, 660, 667, 668
Application code, entering, 75–76
Application development, object-oriented
programming and, 134
Applications, 6, 20, 255, 270
applets contrasted with, 660
arrays in, 493–497
and compilation, 194
compiling/running, 77
construction of, 70–75
debugging, 255
and file I/O, 213
with multiple class files, 131–134
testing, 193, 252
understanding before changing, 129
AreaCodeInvalidException, 437
args string, 72, 499
Arguments, 65, 242, 482
passing array components as, 512
passing array objects as, 618
Arithmetic, with floating-point numbers,
594–597
ArithmeticException, 433, 434, 468
Arithmetic expressions, 141, 155
avoidance of mixing data types in, 115,
117–118
comparing values of, 158
Arithmetic/logic unit, 20, 21, 34
Arithmetic operations, 16, 21, 480
Arithmetic operators, 108–111, 448
order of precedence for, 165
precedence rules with, 114–115
Arpanet, 374
Array components, 486
accessing, 488–490, 513
Array elements, 486
Array element selection, correct
placement of operators for, 511
ArrayExampleclass, 483–484, 485
Array indexes, out-of-bound, 490–491
ArrayIndexOutOfBoundsException, 491, 510
ArrayName, 486
Array processing
examples of, 586
initialize the array, 586, 589–590
special kinds of, 501
Free download pdf