Example programs taken (and sometimes slightly modified) from "Instant Java Applets" by Owen Davic, Tom McGinn, and Amit Bhatiani

Simple JAVA programs and their code

Hello World
First Hello World program
Spinner
Spins some intersecting lines by changing colors and repainting
Client/Server
TCP/IP client/server example uses CGI with server push to show server output as seen in a UNIX session
simpleThread
Supposed to demonstrate basic Threaded programming, but errors out as follows:
23:46:40$ java simpleThread
In class simpleThread: void main(String argv[]) is not defined
Spinner2
Basically Spinner threaded using runnable interface