B

\b boundary matcher, 441 Babel Fish, Yahoo!, 408 back reference, capturing groups, 441 backslash (\)

double backslash characters in pathnames, 450 escape sequence for, 49 representing root directory, Windows, 159 backspace escape sequence for, 49 base class see superclass before method, Date, 415, 416 BigDecimal class, 234-239, 268 constructors, 236, 239 convenience constants, 236 floating-point values, 234

methods, 236

round method, Math class, 234 ROUND_-prefixed constants, 236 superclass of, 257 big-endian format, 494 BigInteger class, 239-243, 268 constructors, 240 convenience constants, 240 factorials, 241-243 methods, 240 RSA encryption, 243 superclass of, 257 bin directory, JDK, 7 binary format integer literals, 50 binary operator, 51 binary search, 370 binary strings prepending zeros to, 256 toAlignedBinaryString, 256 toBinaryString method, 255 binarySearch method, Arrays, 370 Bitmap class compress method, 479 BitmapFactory class decodeFile method, 479 bits, 46

BitSet class, 373-376 methods, 373-374 bitsets, 337

EnumSet class, 338 variable-length bitsets, 376 BitStreamInputStream class, 492 BitStreamOutputStream class, 492 bitwise AND operator, 51, 374 bitwise complement operator, 51 bitwise exclusive OR operator, 51, 374 bitwise inclusive OR operator, 52, 374 Bloch's algorithm, 359 BLOCKED value, State enum, 288 BlockingQueue interface, 392, 393 classes implementing, 392 offer method, 396 poll method, 396 put method, 393, 396 take method, 393, 396 Boolean class, 248-250 Boolean literal, 49 Boolean type, 46

getBoolean method, 275 nextBoolean method, 433

portability of Java applications, 46 booleanValue method, 248, 249 boundaries detecting logical boundaries within text, 409

boundary matchers, 441-442 zero-length matches, 442 bounds, generic types recursive type bound, 208 type parameter bounds, 205-207 boxing autoboxing and unboxing, 323-324 Break Iterator API, 409 break iterators, 409-413

using character-based break iterator, 411

break reserved word, 70 switch statement, 65 break statement, 65, 70

breaking out of finite loop, 70 breaking out of infinite loop, 70 labeled break statement, 72 BreakIterator class, 409

methods, 410-412 BrokenBarrierException, 390 Bubble Sort algorithm, 187 buckets hash function, 357 hashtable capacity, 358 BufferedInputStream class, 492, 493

read method, 492, 493 BufferedOutputStream class, 492

write method, 492, 493 BufferedReader class, 522 readLine method, 522 buffers

StringBuffer class, 281-284 bugs, preventing, 181 byte cast, 56 Byte class, 255-257 Byte integer type, 46, 233 ByteArrayInputStream class, 477, 478 ByteArrayOutputStream class, 477, 478-479

toByteArray method, 478, 479 bytecode, 4 bytecode verifier, 4 bytes, 46, 511

getByte method, 275 nextBytes method, 433 skipBytes method, 465 byteValue method, 255

Was this article helpful?

0 0

Post a comment