The Java Developers Almanac 1.4 has some handy code samples for diffrerent parts of java. Theres a lot of stuff in here and examples of all, by the looks of things.