Programming and Problem Solving with Java

(やまだぃちぅ) #1

754


Debugger program, 255, 653
Debugging, 8, 316.See alsoTesting and de-
bugging
away from computer, 129
process, 77
recursive algorithms, 652
Debug output statements, 255
Decimal (base-10) numbers, 105
DecimalFormatclass, 603, 621
DecimalFormatpatterns, steps for using to
format numbers, 602–603
Decimal format type, 602–604
Decimal integers, converting to binary
numbers, 641–644, 653
Decision, 18
Declaration initialization expressions,
assignment statements distinct
from, 340
Declarations, 16, 54, 70, 79
for arrays, 486
for one-dimensional arrays, 484
for two-dimensional arrays, 582
and value-returning class method, 123
Declarations for numeric types, 106–108
named constant, 106
variable, 107–108
Declaring a variable, 55
Decrement operation (--), 141
Decrement operators (--), 111, 112, 448,
449 , 450
Decrement statement, 112
Deep Blue computer (IBM), winner in
world championship chess match,
658
Deep comparisons
of arrays, 493
of lists, 528
Deep copy, definition of, 353
Deep copying, 354
Deep test, 491
Default labels, 439, 440, 442
Default value, 395
Defense Advanced Research Projects
Agency, 523
deletemethod, 525, 572
and sorted list, 547
and SortedListclass, 544

testing, 537
delete operation, 543
Deleting
components from lists, 534–535
list items, 527, 528
Dell Computer Corporation, 659
DeMorgan, Augustus, 338
DeMorgan’s law, 162n.2
DerivedClassclass, 343
Derived classes, 333, 367
class members accessed from, 342
constructors in, 347
syntax for, 337, 339
Derived class implementation, 346–352
accessing overridden and hidden meth-
ods and fields, 349
constructors in derived classes, 347
example of, 349–352
overloading and method signatures,
347–349
Descartes, René, 121
Deserializing, 355
Design, 177, 270
and data structure, 483, 581
errors in, 77
flow of control in, 233–235
hierarchies in, 326
of loops, 233
and nested loops, 239, 241–242, 257
and process within loop, 235
structured, 285
and test plan, 193
top-down, 285
Desk checking, 190, 191
destroymethod, and applets, 660
Devol, Georg, 269
Dialog, 395
Difference Engine, 338, 339
Differential calculus, 121
Digital computers, background of, 164
Digital Electronics Company, 269
Digital Equipment Corporation, 443
formation of, 268
64–bit chip introduced by, 635
Digits
numbers starting with, 106
syntax template for, 45
Free download pdf