RandomlyBouncingBalls

This program draws a bunch of basketballs on the screen so that by clicking we can watch them bounce randomly. It demonstrates the use of an array to keep track of a fixed number of objects.

Note: This demo requires a Java enabled browser. If you see this message then your browser either doesn't support Java or has had Java disabled.

Click below to download the source files for RandomlyBouncingBalls.