This inefficient collision detection demo illustrates using some of the classes in the Collections hierarchy. Read the source code files for details on how it works.
Once the demo starts, click in the window to create bouncing balls.
Running the sample requires that your browser have the Java 2 Plug-in.
On CEC (and maybe at home), Netscape seems to work more often than other browsers.