这里好多 Java 的例子哦,设计大部分 Java 类库的使用:
The Java Developers Almanac 1.4
http://javaalmanac.com/egs/index.html
-----------------------------------------------------------------------
java.applet [8 examples]
java.awt [77 examples]
java.awt.datatransfer [3 examples]
java.awt.dnd [3 examples]
java.awt.event [8 examples]
java.awt.font [5 examples]
java.awt.geom [4 examples]
java.awt.image [21 examples]
java.awt.print [6 examples]
java.beans [12 examples]
java.io [35 examples]
java.lang [58 examples]
java.lang.ref [3 examples]
java.lang.reflect [17 examples]
java.math [6 examples]
java.net [27 examples]
java.nio [27 examples]
java.nio.charset [2 examples]
java.rmi [6 examples]
java.security [30 examples]
java.security.cert [9 examples]
java.sql [73 examples]
java.text [26 examples]
java.util [49 examples]
java.util.jar [5 examples]
java.util.logging [20 examples]
java.util.prefs [18 examples]
java.util.regex [26 examples]
java.util.zip [9 examples]
javax.accessibility [7 examples]
javax.crypto [14 examples]
javax.imageio [6 examples]
javax.naming [9 examples]
javax.naming.directory [12 examples]
javax.naming.event [2 examples]
javax.naming.ldap [4 examples]
javax.net.ssl [4 examples]
javax.print [6 examples]
javax.print.attribute [4 examples]
javax.print.attribute.standard [3 examples]
javax.print.event [3 examples]
javax.rmi [3 examples]
javax.security.auth.login [3 examples]
javax.security.cert [1 examples]
javax.servlet [11 examples]
javax.servlet.jsp [18 examples]
javax.servlet.jsp.jstl.core [6 examples]
javax.servlet.jsp.tagext [1 examples]
javax.sound.midi [7 examples]
javax.sound.sampled [9 examples]
javax.swing [136 examples]
javax.swing.border [3 examples]
javax.swing.colorchooser [10 examples]
javax.swing.event [1 examples]
javax.swing.filechooser [19 examples]
javax.swing.table [62 examples]
javax.swing.text [49 examples]
javax.swing.text.html [2 examples]
javax.swing.tree [15 examples]
javax.swing.undo [1 examples]
javax.xml.parsers [8 examples]
javax.xml.transform [5 examples]
javax.xml.transform.sax [1 examples]
org.w3c.dom [30 examples]
org.xml.sax [3 examples]
-----------------------------------------------------------------------
出了中文版:
http://www.china-pub.com/computers/common/info.asp?id=8252
又一个例子网站 (java, javascript)
http://www.rgagnon.com/howto.html