rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780596006204

Java Examples in a Nutshell

by
  • ISBN13:

    9780596006204

  • ISBN10:

    0596006209

  • Edition: 3rd
  • Format: Paperback
  • Copyright: 2004-01-01
  • Publisher: Oreilly & Associates Inc

Note: Supplemental materials are not guaranteed with Rental or Used book purchases.

Purchase Benefits

  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.95 Save up to $15.28
  • Rent Book $24.67
    Add to Cart Free Shipping Icon Free Shipping

    TERM
    PRICE
    DUE
    USUALLY SHIPS IN 24-48 HOURS
    *This item is part of an exclusive publisher rental program and requires an additional convenience fee. This fee will be reflected in the shopping cart.

How To: Textbook Rental

Looking to rent a book? Rent Java Examples in a Nutshell [ISBN: 9780596006204] for the semester, quarter, and short term or search our site for other textbooks by Flanagan, David. Renting a textbook can save you up to 90% from the cost of buying.

Summary

Java Examples in a Nutshell has been relied on for years as a practical way to "jump in and try" new Java programming techniques and code. In this new edition, best-selling author David Flanagan has added coverage of regular expressions (new to the core Java API), extended I/O coverage, updated Java internationalization information, and extensive coverage of the new Java GUI features. For the strong of heart, he's also added some sneak peeks at some of the features that developers will see when the 1.5 version of Java releases late in 2004.

Author Biography

David Flanagan is a computer programmer who spends most of his time writing about JavaScript and Java. His books with O'Reilly include Java in a Nutshell, Java Examples in a Nutshell, Java Foundation Classes in a Nutshell, JavaScript: The Definitive Guide, and JavaScript Pocket Reference. David has a degree in computer science and engineering from the Massachusetts Institute of Technology. He lives with his wife and son in the U.S. Pacific Northwest bewteen the cities of Seattle, Washington and Vancouver, British Columbia. David has a simple website at http://www.davidflanagan.com.

Table of Contents

Preface xi
Part I. Learning Java
Java Basics
3(21)
Hello World
3(4)
FizzBuzz
7(2)
The Fibonacci Series
9(1)
Using Command-Line Arguments
10(1)
Echo in Reverse
11(1)
FizzBuzz Switched
12(1)
Computing Factorials
13(1)
Recursive Factorials
14(1)
Caching Factorials
14(2)
Computing Big Factorials
16(1)
Handling Exceptions
17(1)
Interactive Input
18(1)
Using a StringBuffer
19(2)
Sorting Numbers
21(1)
Computing Primes
22(2)
Objects, Classes, and Interfaces
24(35)
A Rectangle Class
25(1)
Testing the Rect Class
26(1)
A Rect Subclass
27(1)
Another Subclass
28(1)
Complex Numbers
29(2)
Computing Statistics
31(2)
An Integer List
33(4)
Tokenizing Text
37(22)
Part II. Core Java APIs
Input/Output
59(26)
Files and Streams
59(3)
Working with Files
62(1)
Copying File Contents
63(3)
Reading and Displaying Text Files
66(4)
Listing Directory and File Information
70(5)
Compressing Files and Directories
75(2)
Filtering Character Streams
77(2)
Tokenizing a Character Stream
79(2)
Random Access to Files
81(4)
Threads
85(17)
Thread Basics
86(2)
Thread-Safe Classes
88(2)
Threads and Thread Groups
90(2)
Deadlock
92(2)
Timers
94(8)
Networking
102(42)
Downloading the Contents of a URL
102(2)
Using a URLConnection
104(1)
Sending Email Through a URLConnection
105(2)
A Simple Network Client
107(2)
A Generic Client
109(3)
An HTTP Client
112(3)
A POP Client
115(6)
A Simple Web Server
121(2)
A Proxy Server
123(3)
A Generic Multithreaded Server
126(13)
Sending Datagrams
139(2)
Receiving Datagrams
141(3)
New I/O
144(43)
Locking Files
146(2)
Copying Files
148(2)
Regular Expressions and Character Decoding
150(3)
File Copying with Buffers
153(2)
Advanced Byte-to-Character Conversion
155(2)
Tokenizing Byte Buffers
157(5)
A Simple HTTP Client
162(4)
The Daytime Service
166(6)
A Multiplexed Server
172(3)
A Multiplexed Network Client
175(12)
Security and Cryptography
187(21)
Running Untrusted Code
188(1)
Loading Untrusted Code
189(5)
Message Digests and Digital Signatures
194(9)
Cryptography
203(5)
Internationalization
208(22)
A Word About Locales
208(1)
Unicode
209(5)
Character Encodings
214(1)
Handling Local Customs
215(5)
Localizing User-Visible Messages
220(5)
Formatted Messages
225(5)
Reflection
230(11)
Obtaining Class and Member Information
230(3)
Invoking a Named Method
233(5)
Proxy Objects
238(3)
Object Serialization
241(14)
Simple Serialization
241(4)
Custom Serialization
245(2)
Externalizable Classes
247(2)
Serialization and Class Versioning
249(6)
Part III. Desktop Java APIs
Graphical User Interfaces
255(98)
Components
257(2)
Containers
259(1)
Layout Management
260(14)
Event Handling
274(17)
A Complete GUI
291(4)
Actions and Reflection
295(2)
Custom Dialogs
297(5)
An Error Handler Dialog
302(6)
Displaying Tables
308(3)
Displaying Trees
311(4)
A Simple Web Browser
315(9)
Describing GUIs with Properties
324(12)
Themes and the Metal Look-and-Feel
336(5)
Look-and-Feel Preferences
341(3)
The ShowBean Program
344(9)
Graphics
353(58)
Graphics Before Java 1.2
354(9)
The Java 2D API
363(2)
Drawing and Filling Shapes
365(2)
Transforms
367(2)
Line Styles with BasicStroke
369(2)
Stroking Lines
371(1)
Filling Shapes with Paint
372(4)
Antialiasing
376(1)
Combining Colors with AlphaComposite
377(4)
Image Processing
381(4)
Image I/O
385(2)
Custom Shapes
387(9)
Custom Strokes
396(4)
Custom Paint
400(2)
Advanced Animation
402(3)
Displaying Graphics Examples
405(6)
Printing
411(27)
Printing with the Java 1.1 API
412(4)
Printing with the Java 1.2 API
416(3)
Printing with the Java 1.4 API
419(3)
Printing Multipage Text Documents
422(9)
Advanced Printing with Java 1.4
431(7)
Data Transfer
438(18)
Simple Swing Data Transfer
438(2)
A Clock with Drag and Copy Support
440(3)
Data Transfer Architecture
443(1)
Dropping Multiple Datatypes
443(4)
A Transferable Shape
447(1)
Custom Data Transfer
447(9)
JavaBeans
456(31)
Bean Basics
457(1)
A Simple Bean
458(4)
A More Complex Bean
462(5)
Custom Events
467(1)
Specifying Bean Information
468(2)
Defining a Simple Property Editor
470(3)
Defining a Complex Property Editor
473(1)
Defining a Bean Customizer
474(3)
Manipulating Beans
477(10)
Applets
487(14)
Introduction to Applets
488(1)
A First Applet
489(1)
A Clock Applet
490(3)
A Timer Applet
493(4)
Applets and the Java 1.0 Event Model
497(4)
Sound
501(24)
Ringing the Bell
502(1)
Swing Aural Cues
503(1)
Playing Sounds with AudioClip
503(1)
Playing Sounds with javax.sound
504(8)
Streaming Sounds with javax.sound
512(3)
Synthesizing a MIDI Sequence
515(5)
Real-Time MIDI Sounds
520(5)
Part IV. Enterprise Java APIs
Database Access with SQL
525(22)
Accessing a Database
526(7)
Using Database Metadata
533(3)
Building a Database
536(5)
Using the API Database
541(5)
Atomic Transactions
546(1)
XML
547(22)
Parsing with JAXP and SAX
547(5)
Parsing and Manipulating with JAXP and DOM
552(4)
Transforming XML with XSLT
556(1)
An XML Pull Parser
557(12)
Servlets and JavaServer Pages
569(36)
Servlet Setup
570(3)
A Hello World Servlet
573(2)
Another Simple Servlet
575(1)
Servlet Initialization and Persistence: A Counter Servlet
576(5)
Hello JSP
581(2)
Hello JSP2
583(2)
Hello XML
585(1)
The MVC Paradigm for Web Applications
586(1)
ListManager Model Classes
586(4)
ListManager Controller
590(5)
ListManager Views
595(3)
Custom Tags in JSP 2.0
598(2)
Packaging a Web Application
600(5)
Remote Method Invocation
605(45)
Remote Banking
606(4)
A Bank Server
610(4)
A Persistent Bank Server
614(7)
A Multiuser Domain
621(1)
Remote MUD Interfaces
622(3)
The MUD Server
625(3)
The MudPlace Class
628(9)
The MudPerson Class
637(1)
A MUD Client
638(9)
Advanced RMI
647(3)
Example Index
650(25)
Index 675

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program