CIS 67: Some Simple Java Programs

A large supply of examples of Java code, some for advanced applications, is at http://developer.java.sun.com/developer/codesamples/
Many more examples are in The Java Developers Almanac 1.4