Java Demo's

The following buttons open new browser windows, to run Java applets.

These applets are built on J2SE.

To run these applets, your browser needs to support Java, either by the browser's own Java virtual machine or by a Java plug-in and an external Java Run-Time Environment (JRE). You can enable your browser for Java by downloading the latest Java plug-in from Sun.

Some of these applets use Java Foundation classes / Swing classes. If your current JRE does not include Swing, you can download (freely) the latest JRE from Sun.

The Applets


PrimeTime is a multi-threaded Swing applet, providing a number of ways in which to find or investigate prime numbers. Prime numbers are useful in such things as encryption and hashing algorithms.

Each function, provided by the given buttons, operates in its own thread which is cooperatively scheduled to allow other threads to run concurrently. This prevents PrimeTime from consuming 100% of CPU time on computers which do not have pre-emptive scheduling, thus allowing the user to continue to use the machine for other purposes too.

This applet is built on JFC/Swing.