Programming and Problem Solving with Java

(やまだぃちぅ) #1
765

Laser printers, initial, 478
Last Starfighter, 580
Layout manager, 378–379, 405, 420
LCD.SeeLiquid crystal display
Left-side operands, evaluation of, 458
Length, of list, 524, 531
lengthfield, 512, 531
length items, testing, 538
lengthmethod, 126, 129
testing, 537, 538
length observer, 533
length variable, 491, 501, 621
Less than operator (<), 156, 491
Less than or equal to operator (<=), 156,
491
Letters, syntax template for, 45
Library catalog system, 25
Linear expressions, 453
Linear relationship, 524
Linear search, 534
Linear time, 454
Linear time complexity, 453
lineCount, 236
Liquid crystal display, 21
Lisp, 113, 268, 635
Listclass, 525–538, 543, 572
brainstorming for, 525
CRC card for, 526 ,543, 544
hierarchy and abstract classes, 548–550
instance of, 532
internal data representation for, 531
refining responsibilities for, 526–531
responsibility algorithms for, 531–536
test plan for, 536–538
listData, 540
Listener, registering with event source,
389–390
Listenerclass, for Calculator2class, 665
List items, sorting, 539–543
Listobject, 536
Lists, 524, 571
array object containing list items
distinct from, 531
with duplicate keys and with unique
keys, 525
ordering preserved when inserting
items into, 545


sorting by two different keys, 524
ListWithSortclass, 541–543
responsibility algorithms for, 539–540
Literal constants, 105
Literals, 481
floating-point, 105–106
named constants used instead of, 107
Literal strings, 62
double quotes within, 86
in concatenation expression, 62
Literal value, 57
Local area network, 667
Local identifier
lifetime of, 345
scope of, 341
Local to method, fields declared inside
methods as, 73
Logarithmic order, 558
Logarithmic-time algorithms, 455
Logging off, 77
Logging on, 75
Logical expressions, 155–163, 195, 197
English statements changed into, 166
short-circuit evaluation of, 163
Logical operations, 21
Logical (or Boolean) operators, 161–163,
448, 451, 481
order of precedence for, 165
Logical order, 221
Logic errors, 77, 194
longtype, 99, 103, 104, 105, 106, 130, 163,
480, 602
Long words, 9
Look for familiar things step, in problem-
solving, 24–25, 291
Loop, 34, 221
Loop control variable, 223, 224, 256
loopCount, 224
Loop entry, 223
Loop execution, phases of, 223
Loop exit, 223, 236
Looping, 220–242, 635
count-controlled loops, 223–225
designing nested loops, 239, 241–242
designing process within loop, 235
design of loops, 233
event-controlled loops, 225–229
Free download pdf