J

JapaneselmperialCalendar class, 417 jar (Java archive creator, updater, and extractor), 7, 475 JAR (Java ARchive) files distributing Four of a Kind, 39 MANIFEST.MF file, 247 modules replacing, 159 packages and, 159-160 packages information, 247 sealed packages, 243 storing packages, 154 Java, 1-6, 41, 43

annotations, 190-200 assertions, 181-190 compared with C/C++, 2 documentation archive file, 11 enums, 214-222

exception and error class hierarchy,

163-164 exceptions, 161-178 generics, 200-214 handle, 466 history, 2

inheritance, 97-116 interfaces, 125-136 language features, 2 loops, 3

nested types, 139-150 Object class, 103-112 packages, 151-160 platforms, 3

polymorphism, 116-124 portability, 4, 46 primitive types, 46 security, 5

static imports, 160-161 stream destinations, 473 stream sources, 473

String class, 86 java (Java application launcher), 7

running Four of a Kind, 37 Java APIs see APIs Java code converting pseudocode to, 23-36 Java compiler, 4 Java EE (Enterprise Edition), 5 Java ME (Micro Edition), 5 Java packages, 151-160 see also packages java.awt, 406 java.io, 151

File class, 449-462 I/O, 449

input stream classes, 473 InputStream class, 473 LineNumberlnputStream class, 474 LineNumberReader class, 474 output stream classes, 473 OutputStream class, 473 pathnames, 451 PrintStream class, 473, 474 PrintWriter class, 474 RandomAccessFile class, 462-473 StringBufferlnputStream class, 474 StringReader class, 474 java.lang, 151, 154

CharSequence interface, 436 Class class, 270-274 ClassLoader class, 402 Comparable interface, 317 Math class, 227-233, 268, 432 Number class, 257 Package class, 243-247, 268 primitive wrapper classes, 247-257, 268

Runnable interface, 382 StrictMath class, 233-234, 268 String class, 278-281 StringBuffer class, 281-284 System class, 284-287 java.lang.ref, 268

Reference class, 259 ReferenceQueue class, 259, 260 References API, 259 java.lang.reflect, 151

AccessibleObject class, 276 Array class, 276 Constructor class, 274-275 Field class, 275

Method class, 275-276 Modifier class, 276 java.math

BigDecimal class, 234-239, 268 Biglnteger class, 239-243, 268 java.net, 151 java.nio.charset

Charset class, 514, 515 CharsetDecoder class, 515 CharsetEncoder class, 514 java.text

Breaklterator class, 409 Collator class, 413 DateFormat class, 424 DateFormatSymbols class, 425 DecimalFormat class, 424 DecimalFormatSymbols class, 424 Format class, 421 NumberFormat class, 235, 421 RuleBasedCollator class, 414 SimpleDateFormat class, 425 java.util, 151

Arrays class, 434 Calendar class, 417-420 Collections class, 434 Date class, 415-416 GregorianCalendar class, 417 ListResourceBundle class, 402 Locale class, 398 MessageFormat class, 426 Properties class, 403 PropertyResourceBundle class, 402 Random class, 432 ResourceBundle class, 401 SimpleTimeZone class, 417 TimeZone class, 417 java.util.concurrent, 287, 381, 392 AbstractExecutorService class, 386 BrokenBarrierException class, 390 Callable interface, 382 CountDownLatch class, 390 Exchanger class, 390 Executor interface, 382 Executors class, 387 ExecutorService interface, 383 Future interface, 385 FutureTask class, 386 RejectedExecutionException, 382 ScheduledExecutorService interface, 386

Semaphore class, 390

java.util.concurrent.atomic, 381, 397 java.util.concurrent.locks, 381, 394 java.util.prefs, 429 java.util.regex

Matcher class, 436 Pattern class, 435 java.util.zip, 474 javax.swing, 408 Java Runtime Environment (JRE), 6 Java SE (Standard Edition), 5 Java SE Development Kit see JDK javac (Java compiler), 7 assertions, 181 compiling Four of a Kind, 37 javadoc (Java documentation generator), 7, 35

Javadoc comments, 34-36 delimiters, 34

extracting comments from code, 35 Four of a Kind game, 25 Javadoc tags @author, 35 @deprecated, 190, 191 @param, 35 @return, 35 javax.swing package, 408 JDBCFilterDriver class, 77 JDK (Java SE Development Kit), 6, 7 documentation archive file, 11 executing JDK tools, 7 JIT compilation, 4 Joda Time, 420

join method, Thread, 289, 293, 294 JOptionPane class showMessageDialog method, 408 JRE (Java Runtime Environment), 6 jre directory, JDK, 7 Just In Time (JIT) compiler, 4

Was this article helpful?

0 0

Post a comment