Mean & Standard Deviation:
Java Essentials, Chapter 6, P6.9.
Applet Source Code