A bouncing ball in many languages
Java Applet with sound
Here is the Java code :
BouncingBall.java