Java The Complete Reference, Seventh Edition

(Greg DeLong) #1
RemoteException, 837
remove( ), 441, 442, 443, 446, 453, 459, 465, 493,
494, 495, 702, 867
removeActionListener( ), 870
removeAll( ), 441, 442, 702
removeAttribute( ), 919, 927
removeEldestEntry( ), 472
removeElement( ), 488, 489
removeElementAt( ), 488, 489
removeFirst( ), 447, 452
removeLast( ), 447, 452
removeTListener( ), 850
removeTypeListener( ), 639
renameTo( ), 558
repaint( ), 625–626, 670, 874
demonstration program, 626–628
replace( ), 373, 382–383
replaceAll( ), 376, 826–827, 831–832
replaceFirst( ), 376
replaceRange( ), 722
ReplicateScaleFilter class, 770
reset( ), 549, 563, 564, 567, 570, 572, 580,
584, 816
resetSyntax( ), 590
Resource bundles, 549–553
ResourceBundle class, 549–550
methods, table of, 550–551
ResourceBundle.Control class, 550
resume( ), 13, 249–252, 423, 429
retainAll( ), 441, 442
@Retention built-in annotation, 273, 282
RetentionPolicy enumeration, 273, 435
return statement, 103–104, 112
reverse( ), 381, 394, 396
reverseBytes( ), 392, 394, 396
reverseOrder( ), 477, 479
rewind( ), 816, 820, 823
RGB (red-green-blue) color model, default,
683, 766
RGBImageFilter class, 770, 772–782
RGBtoHSB( ), 683
Richards, Martin, 4
rint( ), 420
Ritchie, Dennis, 4
RMI compiler (rmic), 839
rmiregistry (RMI registry), 839
round( ), 420
Run-time
system, Java, 9.See alsoJava Virtual
Machine (JVM)
type information, 13, 300, 417

run( ), 226, 228, 422, 424, 522
overriding, 230, 232, 522
using flag variable with, 252–253
Runnable interface, 226, 422, 522, 868
implementing, 228–230, 232
Runtime class, 403, 404–407
executing other programs and, 406–407
memory management and, 405–406
methods, table of, 404–405
RUNTIME retention policy, 273, 274, 277
RuntimeException class, 206, 215, 217, 221
RuntimePermission class, 431

SS
save( ), 497
scalb( ), 419
Scanner class, 540–549
constructors, 540–541
delimiters, 547–548
demonstration programs, 544–547
hasNextX( ) methods, table of, 542
how to use, 541–543
methods, miscellaneous, 548–549
nextX( ) methods, table of, 543
schedule( ), 523
ScheduledExecutorService interface, 802
ScheduledThreadPoolExecutor class, 788, 802
Scientific notation, 40
Scopes in Java, 42–45
Scroll bars, 716–718
Scroll pane, 893–895
Scrollbar class, 716–717
extending, 753–754
search( ), 491, 492
Security problem, 8, 9–10, 14
and native methods, 306
and servlets, 908
SecurityException, 218, 404, 409
SecurityManager class, 431
seek( ), 578
select( ), 711, 714, 719, 722
Selection statements, 77–84
Selectors, 818, 819
Semaphore, 238
and setting initial synchronization
state, 795
using, 789–795
Semaphore class, 788, 789–790
send( ), 613
Separable Model architecture, 861

1018 Java: The Complete Reference

Free download pdf