Java examples in a nutshell

The author of the best-selling Java in a Nutshell has created an entire book of real-world Java programming examples that you can learn from. If you learn best ""by example,"" this is the book for you. This third edition covers Java 1.4 and contains 193 complete, practical exam...

Descripción completa

Detalles Bibliográficos
Autor principal: Flanagan, David (-)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Sebastopol, California : O'Reilly 2004.
Edición:3rd ed
Colección:Java series (O'Reilly & Associates)
Nutshell handbook.
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009627318906719
Tabla de Contenidos:
  • Java Examples in a Nutshell, 3rd Edition; Java Examples Online; Related Books from O&Reilly; Conventions Used in This Book; Request for Comments; Acknowledgments; I. Learning Java; 1.2. FizzBuzz; 1.3. The Fibonacci Series; 1.4. Using Command-Line Arguments; 1.5. Echo in Reverse; 1.6. FizzBuzz Switched; 1.7. Computing Factorials; 1.8. Recursive Factorials; 1.9. Caching Factorials; 1.10. Computing Big Factorials; 1.11. Handling Exceptions; 1.12. Interactive Input; 1.13. Using a StringBuffer; 1.14. Sorting Numbers; 1.15. Computing Primes; 1.16. Exercises; 2. Objects, Classes, and Interfaces
  • 2.2. Testing the Rect Class2.3. A Rect Subclass; 2.4. Another Subclass; 2.5. Complex Numbers; 2.6. Computing Statistics; 2.7. An Integer List; 2.8. Tokenizing Text; 2.8.2. The AbstractTokenizer Implementation; 2.8.3. A Concrete CharSequenceTokenizer; 2.9. Exercises; II. Core Java APIs; 3.2. Working with Files; 3.3. Copying File Contents; 3.4. Reading and Displaying Text Files; 3.5. Listing Directory and File Information; 3.6. Compressing Files and Directories; 3.7. Filtering Character Streams; 3.8. Tokenizing a Character Stream; 3.9. Random Access to Files; 3.10. Exercises; 4. Threads
  • 4.2. Thread-Safe Classes4.3. Threads and Thread Groups; 4.4. Deadlock; 4.5. Timers; 4.6. Exercises; 5. Networking; 5.2. Using a URLConnection; 5.3. Sending Email Through a URLConnection; 5.4. A Simple Network Client; 5.5. A Generic Client; 5.6. An HTTP Client; 5.7. A POP Client; 5.8. A Simple Web Server; 5.9. A Proxy Server; 5.10. A Generic Multithreaded Server; 5.11. Sending Datagrams; 5.12. Receiving Datagrams; 5.13. Exercises; 6. New I/O; 6.2. Copying Files; 6.3. Regular Expressions and Character Decoding; 6.4. File Copying with Buffers; 6.5. Advanced Byte-to-Character Conversion
  • 6.6. Tokenizing Byte Buffers6.6.2. Tokenizing Channels; 6.7. A Simple HTTP Client; 6.8. The Daytime Service; 6.8.2. A Daytime Client; 6.9. A Multiplexed Server; 6.10. A Multiplexed Network Client; 6.11. Exercises; 7. Security and Cryptography; 7.2. Loading Untrusted Code; 7.2.2. Testing SafeServer; 7.3. Message Digests and Digital Signatures; 7.4. Cryptography; 7.5. Exercises; 8. Internationalization; 8.2. Unicode; 8.3. Character Encodings; 8.4. Handling Local Customs; 8.5. Localizing User-Visible Messages; 8.5.2. ResourceBundle Example; 8.6. Formatted Messages; 8.7. Exercises; 9. Reflection
  • 9.2. Invoking a Named Method9.3. Proxy Objects; 9.4. Exercises; 10. Object Serialization; 10.2. Custom Serialization; 10.3. Externalizable Classes; 10.4. Serialization and Class Versioning; 10.5. Exercises; III. Desktop Java APIs; 11.2. Containers; 11.3. Layout Management; 11.3.2. GridLayout; 11.3.3. BorderLayout; 11.3.4. Box and BoxLayout; 11.3.5. GridBagLayout; 11.3.6. Hardcoded Layout; 11.3.7. Creating Custom Layout Managers; 11.4. Event Handling; 11.4.2. More Mouse Events; 11.4.3. Handling Component Events; 11.4.4. Low-Level Event Handling; 11.4.5. Custom Events and Event Listeners
  • 11.5. A Complete GUI