Programming and Problem Solving with Java

(やまだぃちぅ) #1

758


Fields(continued)
frames and declaration of, 376
using, 397–398
File identifier, declaring, 214
File input and output, 212–220
example application using files, 219–220
files, 212–213
using files, 213–219
FileInputStream, 358, 365
File objects
instantiating, 215–216
methods associated with, 216–218
File-oriented applications, 22
FileOutputStream, 358, 365
File pointers, 212, 215, 216, 218
FileReaderclass, 213, 254, 255, 355
relationship between BufferedReader
and, 214
FileReaderconstructor, 432
Files, 76, 212–219, 256
File sorting, 542, 543
File storage, disks used for, 212
File variables, declaring, 256
FileWriterclass, 213, 218, 254, 255, 355
relationship between PrintWriter, 214
FileWriter object, 359
Films, computer-generated, 635
Filtering, 278–280, 285, 315
for address book case study, 304–305
for address books merging case study,
562
for calculator case study, 412
for grading true/false tests case study,
502
for monthly rainfall averages case
study, 459
for rainfall amounts case study, 402
Finalfields, 273
Finally block, in try-catch-finally, 435
finally clause, 433, 435
final member, 273
finalmodifier, 57, 58, 73, 273
Firing an event, 385
Flag-controlled loops, 232, 234–235, 254
Flags, 232
Flag variables, change in, 256
Fleming, John A., 40
Flip-flop switching circuit, 41

Floating-point accuracy, 167
Floating-point arithmetic,
representational errors with, 602
Floating-point division (/), 108, 109, 118
Floating-point literals, examples of,
105–106
Floating-point numbers, 592–602
arithmetic with, 594–596
coding of, 595
comparing, 598–599
computers and limiting of precision of,
596
implementation of in computer,
596–603
note on comparison of for equality, 167
representation of, 592–595
Floating-point operands, and
increment/decrement operators, 112
Floating-point remainder operation, 109
Floating-point representation, 621
Floating-point types, 106, 141, 480, 621
and arrays, 488
relational operators with, 167
and significant digits, 596
Floating-point values, 105, 110, 141
rounding off, 116
storage of, 115
Floating-point variables, and representa-
tional errors, 595
floattype, 99, 105, 106, 130, 480, 602, 619
float value, 105
Floppy disk, IBM introduces 8 inch version
of, 375
FlowLayoutmanager, 379, 382
Flow of control, 154, 211, 236
for calculating pay, 169
designing, 233–235
in example switch statement, 439
for if, 172
of if-else, 168
and if statement, 167
through switch statement, 440
while and do, 445
for while statement, 222
Fluid dynamics, 121
for loop
nested, 446
and sum the rows, 587
Free download pdf