fall-through, in switch statements, 328
File class
creating files with, 431–432
overview, 429
File I/O. See I/O (input/output)
FileReader class, 429, 433–435
files
creating, 431–432
working with, 438–443
FileWriter class, 430, 433–435
final
class declaration, 15–16
class member declaration, 40, 41
increment/decrement and, 291
methods, 420
variable declaration, 57–58
finalize(), garbage collection, 253
finally statement
exception handling and, 347–349
legal expressions of, 349–350
flags, format strings, 490
floating-point literals, 178–179
floating-point numbers, 186
flow control
break statements, 326–328, 340
conditional expressions in for loops, 334–335
continue statements, 341
declaration and initialization of for loops, 334
default case for switch statements, 329
do loops, 332–333
enhanced for loops (for arrays), 338–340
exercise creating labeled while loop, 344
exercise creating switch-case statement, 330
fall-through in switch statements, 328
if-else, 317–320
if statements, 316
iteration expressions in for loops, 335–336
labeled statements and, 342–343
legal expressions of case statement, 323–326
legal expressions of if statements, 320–322
legal expressions of switch statement, 323–326
for loop issues, 336–338
for loops, 333–334
self test answers, 399–410
self test questions, 389–398
switch statements, 316, 322–323
two-minute drill, 385–386
unlabeled statements and, 341–342
while loops, 331–332
flush(), 434
for loops
conditional (boolean) expressions, 334–335
declaration and initialization, 334
enhanced (for arrays), 338–340
issues with, 336–338
iteration expressions, 335–336
labeled statements and, 342–343
overview, 333–334
for statement, 338–340
forcing garbage collection, 250–252
format(), 489–491
formatting
printf() and format(), 489–491
self test answers, 508–520
self test questions, 498–507
two-minute drill, 496–497