Programming and Problem Solving with Java

(やまだぃちぅ) #1
759

testing, 466
for looping statement, 431
formatmethod, 602
Formatting, code, 124, 140, 141, 299, 316
Formatting output, 382–384
GridLayoutused for tabular output,
382–384
text alignment within JLabels, 384
Forrester, Jay, 153
for statement, 445–447
and do loop, 467
guidelines for choosing, 448
FORTRAN, 113, 635
Fortran compiler, 211
Fortran II, 113
Fortran IV, 113
Fortran 77, 113
Fortran 90, 113
Forward slash (/), 50
Fractional part, in floating-point numbers,
105
Frameclasses, instantiation of and specify-
ing properties of, 377–379
Frames, 376–382
buttons added to, 386
content pane for, 377
entering data using fields in, 394–395
frame visible on screen, 380–382
importclasses and declarefields, 376
instantiating frameclasses, 377–379
output added to content pane, 380
size specification for, 378
with two buttons, 409
Frankston, Bob, 479
Free format, 124
FreezeBoilapplication, 111
FreezeBoilclass, 111
Full evaluation, 163
Functional decomposition, 270, 285–288,
315, 316
in calculator case study, 415


G


Galileo, 121
Gates, Bill, 478
GE ERMA, 269
Genderclass, 246, 247
gender.dat, 246


Gender object, 246, 248
General Electric, 269
General (or recursive) case, 547, 637, 645,
648, 653
General solution (algorithm), in problem-
solving phase, 6
GenerateListsmethod, 563
Generic lists, 559–561, 572
and Comparable interface, 559–561
and polymorphism, 561
Geschke, Charles, 523
getActionCommandmethod, 410, 421
getContentPanemethod, 421
getMessagemethod, 434, 435, 438
getNextItemmethod, 527, 528, 536, 537, 539
and sorted list, 547
testing, 538
getNextItemoperation, 535
getTextmethod, 395, 398, 420, 421
getUIClassID, 336, 337
Gibson, William, 578
Gosling, James, 113
gourmetBurgers, 501
gourmetBurgersarray, 495
grade, and switch statement, 440, 441
GradeExamsclass, 507
CRC card for, 504
Grading true/false tests case study,
502–509
Graphical user interfaces, 65, 113, 333, 375,
421, 661
Greater than operator (>), 156
Greater than or equal to operator (>=), 156
GregorianCalendarclass, 179, 360
Grid, with centered headings in first row,
384
Grid layout, with five rows and two
columns, 383
GridLayoutmanager, 382–384
groceryItemsarray, 498
Grouping order, 114
Grove, Andy, 374
GUI programming, 421
GUIs.SeeGraphical user interfaces

H
Hand-held calculators, 430
Hand trace, 191
Free download pdf