Programming and Problem Solving with Java

(やまだぃちぅ) #1
749

CAD design.SeeComputer-aided design
program
Calculating, Tabulating, and Recording
Company (CTR), establishment
of, 41.See alsoIBM
Calculations, performing with
expressions, 108
Calculatorapplet, .html file for running of,
670
Calculator case study, 412–419
brainstorming for, 412
filtering for, 412
responsibility algorithms for, 414–417
scenarios for, 413–414
Calculatorclass, 414, 416, 417–419
CRC card for, 413
Calculators
early, 2
first hand-held, 325
Pascal’s inventions, 121
Calculator2class
applet written for, 665–666
screen shot for, 667
Calculus of probabilities, 121
Calendarclass, in java.utilpackage, 360
Calling a method, 79–80
throwing an exception to be caught in,
436
Call to method, 65–66
Cambridge Mathematical Journal, 164
Cancellation errors, 601–603, 620
Capek, Karl, 41
Capitalization, 48
and adding button to frame, 387
of classes, 100
of constructors, 69
of identifiers, 59
and indexOfmethod, 126
Case constants, of switch statement, 467
Case labels, 439, 440, 441, 467
casereserved word, 440
Case-sensitivity, 48, 86.See also
Capitalization
Case studies
address book, 304–313
average income by gender, 246–251
extending the address book, 359–364


grading true/false tests, 502–509
matrix manipulation, 605–619
merging address books, 562–570
monthly rainfall averages, 459–466
name displayed in multiple formats,
83–86
party planning/preparation, 30–32
searching experiments, 671–676
simple calculator, 412–419
small company payroll, 135–139
totaling rainfall amounts, 402–409
warning notices, 184–190
Cast operation, 116, 481
Casts, 116n.1
catch block, in try-catch, 433
catch clause, 433, 434, 438
Catching an exception, 432, 436, 467
Catenary curve, 603
Caught exceptions, 231
CDC 6600, 325
CD-ROM, introduction of, 580
CD-ROM drive, 22
Cells, 49
Cellular phone systems, 522
Central processing unit, 21, 34
Character counts example, for
declaring/processing arrays, 495–497
Character data, 602
Character sets, 48, 480
Character stream file object, effect of call-
ing constructor for, 215
Character stream files, 214
charliteral, 86
chartype, 48–50, 106, 439, 602
index expressions as, 489
switch expression and, 467
char[]type, 488, 499
charvalue, 54, 127, 482
Chess matches, 658
Chief architect, 300
Circleclass, 340
Clark, Jim, 635
Class code, separating, 141
class composite type, 482
class construct, 100, 269
Class declaration
abstract keyword in, 335
Free download pdf