★ wanayoo — archive 1999 http://developer.java.sun.com/developer/codesamples/Nouvelle recherche | Portail wanayoo
Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
 

Examplets from The Java Developers Almanac 1999

Copyright 1999 Addison-Wesley

"Examplets" are code snippets designed to illustrate a particular task using the smallest amount of code possible. Their main purpose is to show you which classes and members are involved in the described task and generally how they interact with each other. Blue italicized text in an examplet indicates the parts that should be replaced if you use it in your program.

In some cases, an examplet may have sufficient detail for you to use directly; in other cases, you may have to look up the involved classes in another reference book for more information. The Almanac includes a comprehensive cross-reference of all the entire Java 2 Platform APIs which is useful for determining where a class or member comes from. The closest online resource for this task is the Java 2 Platform API index.

If the code of an examplet throws a checked exception, the code is surrounded by a try/catch statement. However, to reduce space and distraction, the catch clause is left blank. Such catch clauses should always handle the exception in some way and should never be left blank. At the very least, you should include a call to e.printStackTrace() to display the exception on the console.

Order this book from Amazon


Accessibility

Applets

Application & System

Arrays

AWT
(Abstract Windowing Toolkit)

Compression

Database - JDBC

Data Structures
& Algorithms

Files, Streams, I/O

Internationalization

JavaBeans (tm)

Manipulating
& Painting Images

  

Math

Networking

Printing

Reference Objects

Reflection

RMI

Security

Strings

Swing

Threads

Time

There are currently 250 examplets in this collection. My plan is to eventually include several thousand. If there are examplets that you would see or if you have any comments or suggestions please send them to almanac@xeo.com. I probably won't be able to respond to all messages but I will definitely read and consider each one. Thanks, Patrick Chan

Read a feature story on this book
Read a InfoWorld review on this book
Order this book from Amazon


All examplets copyright 1999 Patrick Chan and Addison-Wesley.


THE INFORMATION PROVIDED IN THE JAVA DEVELOPER'S CONNECTION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR, AND NON-INFRINGEMENT. THIS INFORMATION IS PROVIDED AT NO CHARGE. BY USE OF THE INFORMATION YOU AGREE THAT NEITHER SUN MICROSYSTEMS, INC. NOR ITS LICENSORS WILL BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF SUN OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. THIS INFORMATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN. SUN MICROSYSTEMS, INC. MAY MAKE IMPROVEMENTS AND OTHER CHANGES IN THE PRODUCTS AND THE PROGRAMS DESCRIBED HEREIN AT ANY TIME WITHOUT NOTICE.

[ This page was updated: 20-Aug-99 ]

Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World
FAQ | Feedback | Map | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-99 Sun Microsystems, Inc.
All Rights Reserved. Legal Terms. Privacy Policy.