Programming and Problem Solving with Java

(やまだぃちぅ) #1

772


printListmethod, 537, 538
printlnmethod, 66, 67, 70, 79, 88, 216, 256,
273
printMatrix, 607
printmethod, 66, 67, 79, 88, 216, 256
execution of, 650
PrintNameapplication, 71, 74, 82–86,
381–382
PrintNameclass, 381–382, 499
PrintStreamclass, 102
PrintWriter class, 213, 216, 255, 355, 358
relationship between FileWriter and,
214
Privacy, of data, 302
private access, 343, 345, 365, 367
privatekeyword, 295
private member, 273
privatemodifier, 52, 56, 72, 73, 124, 273,
345, 388
Problem solving, 33, 275–276
Problem-solving phase, 5, 6, 50, 190, 270,
271
testing design in, 197
time involved in, 288
Problem-solving techniques, 22–29, 34
ask questions, 23–24
building-block approach, 27
divide and conquer, 26
and fear of starting, 28–29
look for things that are familiar, 24–25
means-ends analysis, 25–26
merging solutions, 27–28
object-oriented, 29
solve by analogy, 25
Programmers, 5
Programming
description of, 4–5
at many scales, 300
modular, 285
Programming in the large, 300
Programming in the small, 300
Programming languages, 7–8, 34
basic control structures of, 17
character treatment by, 480
instructions written in, 15–20
Tower of Babel period of, 113
Programming practices, general and spe-
cial cases guidelines, 547

Programming process
implementation phase, 5, 6
maintenance phase, 6–9
problem-solving phase, 5, 6
Programming teams
brainstorming by, 277–278
walk-throughs and code inspections by,
191
Programs, 20
executing, 8
writing, 5–9
Project director, 300
Prolog, 430
Prompting message, 420
protected access, 343, 365, 367
protected field, 367
protected modifier, 333, 344
Provincial Letters(Pascal), 121
Pseudocode, 288, 299
public access, 343, 365, 367
publicclass
and applets, 667
and compilation unit, 316
name of in compilation unit, 296
publicfield, 367
publicfield values, 290
Public interface, 273
object and, 274
Public-key cryptosystems, 479
publickeyword, 295
public member, 273
publicmodifier, 52, 56, 72, 73, 273, 388
Purdue University, computer science
department established at, 269

Q
Quadratic formula, 454
Quadratic time, 454
Qualified names, 343
QUOTED EXPECTED message, 53
Quotes, character and string literals in,
106
QWERTY typewriter keyboard, 3

R
Ragged arrays, 585, 586, 621
Rainfall amounts case study, 402–409
brainstorming for, 402
Free download pdf