gogogo
Syndetics cover image
Image from Syndetics

Java examples in a nutshell a tutorial companion to Java in a nutshell David Flanagan

By: Material type: TextTextPublication details: Cambridge [Mass.] O'Reilly c1997Edition: 1st edDescription: xiv, 397 p. ill. 23 cmISBN:
  • 1565923715
Subject(s): DDC classification:
  • 005.133
Holdings
Item type Current library Call number Copy number Status Date due Barcode
Standard Loan Moylish Library Main Collection 005.133 (Browse shelf(Opens below)) 1 Missing 39002000182064
Standard Loan Thurles Library Main Collection 005.133 FLA (Browse shelf(Opens below)) 1 Available R02004FKRCT

Enhanced descriptions from Syndetics:

Java Examples in a Nutshell is chock full of practical real-world Java programming examples. The author of the bestselling Java in a Nutshell has created an entire book of example programs that you can learn from and modify for your own use. If you learn best "by example," this is the book for you.This book is a companion volume to Java in a Nutshell . While Java in a Nutshell is a quick-reference at heart, it also includes an accelerated introduction to Java programming. Java Examples in a Nutshell picks up where that book leaves off, providing a suite of example programs for novice Java programmers and experts alike. This book doesn't hold your hand or supply detailed explanations of Java syntax or method calls; it simply delivers well-commented working examples that help you explore the wide range of what is possible with Java 1.1. Each chapter concludes with programming exercises that suggest further avenues for building on what you have learned. Java Examples in a Nutshell contains all of the example programs from the first edition of Java in a Nutshell , completely updated for Java 1.1. In addition, the I/O, networking, and GUI chapters have been augmented to include even more practical examples. It also expands on the examples from the second edition of Java in a Nutshell that demonstrate the new features in Java 1.1, including the new AWT event handling model, the JavaBeans API, internationalization, object serialization, and reflection.In addition, this book provides never-before-published programming examples for remote method invocation, database connectivity, and security -- important elements of the Java Enterprise APIs. Finally, the book offers a glimpse of the features of "Swing," the set of new components that are part of the forthcoming Java Foundation Classes (JFC).

Includes index

Table of contents provided by Syndetics

  • Preface (p. xiii)
  • Part I Core Java APIs
  • Chapter 1 Java Basics (p. 3)
  • Hello World (p. 3)
  • FizzBuzz (p. 7)
  • The Fibonacci Series (p. 10)
  • Using Command-Line Arguments (p. 10)
  • Echo in Reverse (p. 11)
  • FizzBuzz Switched (p. 12)
  • Computing Factorials (p. 13)
  • Recursive Factorials (p. 14)
  • Caching Factorials (p. 15)
  • Computing Big Factorials (p. 16)
  • Handling Exceptions (p. 17)
  • Interactive Input (p. 18)
  • Using a StringBuffer (p. 19)
  • Sorting Numbers (p. 21)
  • Computing Primes (p. 22)
  • Exercises (p. 23)
  • Chapter 2 Objects, Classes, and Interfaces (p. 24)
  • A Rectangle Class (p. 25)
  • Testing the Rect Class (p. 26)
  • A Rect Subclass (p. 27)
  • Another Subclass (p. 27)
  • Complex Numbers (p. 28)
  • Computing Pseudo-Random Numbers (p. 30)
  • Computing Statistics (p. 32)
  • A Linked List Class (p. 33)
  • Advanced Sorting (p. 36)
  • Exercises (p. 42)
  • Chapter 3 Input/Output (p. 44)
  • Files and Streams (p. 44)
  • Working with Files (p. 48)
  • Copying File Contents (p. 49)
  • Reading and Displaying Text Files (p. 52)
  • Listing Directory and File Information (p. 55)
  • Compressing Files and Directories (p. 60)
  • Filtering Character Streams (p. 62)
  • Filtering Lines of Text (p. 64)
  • A Custom HTML Output Stream (p. 65)
  • Exercises (p. 68)
  • Chapter 4 Threads (p. 70)
  • Thread Basics (p. 71)
  • Threads and Thread Groups (p. 72)
  • Deadlock (p. 75)
  • Timers (p. 77)
  • Exercises (p. 82)
  • Chapter 5 Networking (p. 84)
  • Downloading the Contents of a URL (p. 84)
  • Using a URLConnection (p. 86)
  • Sending Email Through a URLConnection (p. 87)
  • Connecting to a Web Server (p. 89)
  • A Simple Web Server (p. 91)
  • A Proxy Server (p. 93)
  • Networking with Applets (p. 96)
  • A Generic Client (p. 99)
  • A Generic Multithreaded Server (p. 101)
  • A Multithreaded Proxy Server (p. 113)
  • Sending Datagrams (p. 116)
  • Receiving Datagrams (p. 117)
  • Exercises (p. 119)
  • Chapter 6 Security and Cryptography (p. 121)
  • Running Untrusted Code (p. 122)
  • Loading Untrusted Code (p. 123)
  • Message Digests and Digital Signatures (p. 128)
  • Cryptography (p. 136)
  • Exercises (p. 139)
  • Chapter 7 Internationalization (p. 141)
  • A Word About Locales (p. 141)
  • Unicode (p. 142)
  • Character Encodings (p. 146)
  • Handling Local Customs (p. 148)
  • Localizing User-Visible Messages (p. 151)
  • Formatted Messages (p. 156)
  • Exercises (p. 159)
  • Chapter 8 Reflection (p. 161)
  • Obtaining Class and Member Information (p. 161)
  • Invoking a Named Method (p. 164)
  • Exercises (p. 168)
  • Chapter 9 Object Serialization (p. 169)
  • Simple Serialization (p. 169)
  • Custom Serialization (p. 172)
  • Externalizable Classes (p. 174)
  • Serialization and Class Versioning (p. 176)
  • Serialized Applets (p. 177)
  • Exercises (p. 178)
  • Part II Graphics and GUIs
  • Chapter 10 Graphical User Interfaces (p. 181)
  • Components (p. 183)
  • Containers (p. 189)
  • Layout Management (p. 190)
  • Event Handling (p. 203)
  • A Complete GUI (p. 217)
  • Actions and Reflection (p. 221)
  • Custom Dialogs (p. 222)
  • Displaying Tables (p. 227)
  • Displaying Trees (p. 230)
  • A Simple Web Browser (p. 234)
  • Describing GUIs with Properties (p. 242)
  • Themes and the Metal Look-and-Feel (p. 253)
  • Custom Components (p. 257)
  • Exercises (p. 263)
  • Chapter 11 Graphics (p. 266)
  • Graphics Before Java 1.2 (p. 267)
  • The Java 2D API (p. 276)
  • Drawing and Filling Shapes (p. 277)
  • Transforms (p. 279)
  • Line Styles with BasicStroke (p. 281)
  • Stroking Lines (p. 283)
  • Filling Shapes with Paint (p. 284)
  • Antialiasing (p. 287)
  • Combining Colors with AlphaComposite (p. 289)
  • Image Processing (p. 292)
  • A Custom Shape (p. 295)
  • Custom Strokes (p. 299)
  • Custom Paint (p. 303)
  • Advanced Animation (p. 305)
  • Displaying Graphics Examples (p. 308)
  • Exercises (p. 312)
  • Chapter 12 Printing (p. 314)
  • Printing with the Java 1.1 API (p. 314)
  • Printing with the Java 1.2 API (p. 316)
  • Printing Multipage Text Documents (p. 319)
  • Printing Swing Documents (p. 327)
  • Exercises (p. 333)
  • Chapter 13 Data Transfer (p. 334)
  • Data Transfer Architecture (p. 334)
  • Simple Copy-and-Paste (p. 335)
  • A Transferable Data Type (p. 338)
  • Cutting and Pasting Scribbles (p. 344)
  • Dragging and Dropping Scribbles (p. 347)
  • Exercises (p. 353)
  • Chapter 14 JavaBeans (p. 354)
  • Bean Basics (p. 355)
  • A Simple Bean (p. 356)
  • A More Complex Bean (p. 360)
  • Custom Events (p. 364)
  • Specifying Bean Information (p. 365)
  • Defining a Simple Property Editor (p. 367)
  • Defining a Complex Property Editor (p. 369)
  • Defining a Bean Customizer (p. 371)
  • Exercises (p. 374)
  • Chapter 15 Applets (p. 375)
  • Introduction to Applets (p. 375)
  • A First Applet (p. 377)
  • A Clock Applet (p. 378)
  • Applets and the Java 1.0 Event Model (p. 380)
  • Java 1.0 Event Details (p. 383)
  • Reading Applet Parameters (p. 385)
  • Images and Sounds (p. 387)
  • JAR Files (p. 391)
  • Exercises (p. 392)
  • Part III Enterprise Java
  • Chapter 16 Remote Method Invocation (p. 395)
  • Remote Banking (p. 396)
  • A Bank Server (p. 400)
  • A Multiuser Domain (p. 404)
  • Remote MUD Interfaces (p. 405)
  • The MUD Server (p. 408)
  • The MudPlace Class (p. 411)
  • The MudPerson Class (p. 418)
  • A MUD Client (p. 420)
  • Advanced RMI (p. 428)
  • Exercises (p. 429)
  • Chapter 17 Database Access with SQL (p. 431)
  • Accessing a Database (p. 432)
  • Using Database Metadata (p. 438)
  • Building a Database (p. 441)
  • Using the API Database (p. 446)
  • Atomic Transactions (p. 450)
  • Exercises (p. 456)
  • Chapter 18 Servlets and JSP (p. 458)
  • Servlet Setup (p. 458)
  • A Hello World Servlet (p. 461)
  • Servlet Initialization and Persistence: A Counter Servlet (p. 463)
  • Database Access with Servlets (p. 467)
  • A Login Screen with JSP (p. 471)
  • Request Forwarding (p. 476)
  • JSP Pages and JavaBeans (p. 477)
  • Ending a User Session (p. 482)
  • Custom Tags (p. 483)
  • Deploying a Web Application (p. 488)
  • Exercises (p. 492)
  • Chapter 19 XML (p. 494)
  • Parsing with JAXP and SAX 1 (p. 494)
  • Parsing with SAX 2 (p. 499)
  • Parsing and Manipulating with JAXP and DOM (p. 502)
  • Traversing a DOM Tree (p. 506)
  • Traversing a Document with DOM Level 2 (p. 508)
  • The JDOM API (p. 512)
  • Exercises (p. 514)
  • Chapter 20 Example Index (p. 516)
  • Index (p. 535)

Author notes provided by Syndetics

David Flanagan graduated from the Massachusetts Institute of Technology. He is a consulting computer programmer, user interface designer and trainer.

His books include X Toolkit Intrinsics Reference Manual and Motif Tools: Streamlined GUI Design and Programming with the Xmt Library.

(Bowker Author Biography)

Powered by Koha