Programming and Problem Solving with Java

(やまだぃちぅ) #1
775

Scope of access, 339–345
external scope, 339, 342–345
internal scope, 339, 340–342
Scope rules, 339, 340, 367
Screens, 21, 22
frame made visible on, 380–382
frame permanently removed from, 411
Searchclass
code for applet for, 674–676
CRC card for, 672
searchIndex, 542
Searching, 550–557, 571
binary, 552–557
complexity of, 557–558
sequential, 550–552
Searching algorithms, 671
Searching experiments case study,
671–676
brainstorming for, 671
responsibility algorithms for, 672–674
scenarios for, 671–672
Secondary storage devices, 21
Security
and applets, 660
and the Internet, 581
Selection, 16, 34, 154
Selection control structure, 18, 155 , 186
Selection sorts, 540
selectSortmethod, 540, 543, 558, 570
Self-documenting code, 299
Semantic content, indexes with, 501
Semantic errors, 194, 195
Semantics, 42, 87, 339
Semi-Automatic Ground Environment,
324
Semicolons (;), 169
declarations ending with, 52
in expression statement, 450
field declarations ending with, 79
and infinite loops, 254
lack of after right brace of block, 170
and null statement, 74
in package syntax, 295
for statement parts separated by,
467
statements ending with, 87
for terminating statements, 124


Sentinel-controlled loops, 225–227, 233,
234, 254, 256
Sentinel values, 225, 226, 227, 253, 256
Sequence of statements, else clause
turned into, 170
Sequences, 16, 18, 34
Sequential control, 154
Sequential memory, 497
Sequential searching, 534, 550–552, 571,
572, 671
number of iterations and binary search
compared with, 556
in ordered lists, 671
Sequential-search method, and Big-O no-
tation, 557
Serializableinterface, 366, 367
Serializing, 355
setDefaultCloseOperation, 378
setLayoutmethod, 379, 383
setSizemethod, 378
setText, 395, 397–398, 421
setVisiblemethod, 387, 398
setVisible (true), for frame visibility on
screen, 380, 421
Shakey mobile robot, 375
Shallow assignment, 491
Shallow copy, definition of, 353
Shallow copying, 353
Shallow test, 491
Shamir, Adi, 479
Shickard, Wilhelm, 121
ShiftDown, and SortedListclass, 546
Sholes, Christopher, 3
Short-circuit (conditional) evaluation, 163
Short Order Code, 153
short type, 103, 105, 163, 439, 480
index expressions as, 489
switch expression and, 467
Short words, 9
Side effects
in assignment expression, 448
and readability, 451
unnecessary, 458
Signatures, 347, 348, 365, 367
Significant digits, 593, 596, 597, 598
Signs, numbers starting with, 106
Silicon transistors, 210
Free download pdf