show( ), 730
showDocument( ), 633, 634, 635
showStatus( ), 620, 628, 635
shuffle( ), 477, 479
shutdown( ), 801, 804
Sign extension, 67
signal( ), 808
signum( ), 394, 396, 421
SimpleBeanInfo class, 850
SimpleDateFormat class, 516, 842–843
formatting string symbols, table of, 843
SimpleTimeZone class, 514–515
sin( ), 418
SingleSelectionModel, 891
sinh( ), 419
SIZE, 387, 391
size( ), 441, 442, 453, 465, 489, 493, 494, 495,
506, 819
skip( ), 549, 563, 564–565, 570, 580, 595
sleep( ), 226, 227, 228, 233, 424, 807
slice( ), 817
Slider box, 716
Socket class, 603–605, 612, 613, 818
Socket(s)
example program of client/server, 611–628
overview, 599
TCP/IP client, 603–605
TCP/IP server, 603, 612–613
SocketAddress class, 613
SocketChannel class, 818
SocketException, 613
sort( ), 482–483
SortedMap interface, 464, 465, 466
methods, table of, 466
SortedSet interface, 440, 444
methods, table of, 444
Source code file, naming, 21–22
SOURCE retention policy, 273
split( ), 376, 377, 832
sqrt( ), 42, 309–311, 419
Stack
definition of, 123
ways to implement a, 197
Stack class, 438, 448, 487, 491–493
methods, table of, 492
Stack frame, 431
Stack trace, 207, 441
StackTraceElement class, 431–432
methods, table of, 431–432
Standard Template Library (STL), 439
start( ), 226, 229, 230, 403, 408, 424, 620, 621,
622, 623, 624, 669, 826, 871
startsWith( ), 368
Statements, 24
null, 85
Statements, control
iteration, 77, 84–98
jump, 77, 98–104
selection, 77–84
static, 23, 141–143, 145, 309
member restrictions, 354–355
Static import, 14, 309–312
stop( ), 13, 251–252, 423, 620, 621, 622–623, 625,
635, 669, 871
store( ), 498, 500–501
Stream(s)
benefits, 598
buffered, 569–572
classes, byte, 286, 287, 562–578
classes, character, 286, 287–288, 562,
578–592
definition of, 286, 555
filtered, 569
predefined, 288
StreamTokenizer class, 590–592
strictfp, 302
StrictMath class, 422
String class, 24, 55–56, 148–150, 359, 433, 540
constructors, 359–362
String(s)
arrays of, 150
changing case of characters in, 375–376
comparison, 366–370
concatenating, 148–149, 362–364. 373, 380
creating, 359–362
extracting characters from, 365–366
length, obtaining, 149–150, 362
literals, 40–41, 362
modifying, 372–374
as objects, 41, 55–56, 148, 359
parsing a formatted input, 503
reading, 290–291
representations of numbers, converting,
390, 396–398
searching, 370–372
StringBuffer class, 148, 359, 361, 372,
377–384, 433
StringBufferInputStream deprecated class, 556
StingBuilder class, 359, 361, 372, 384, 433, 526
and synchronization, 384
1020 Java: The Complete Reference