Hello People

I wanted to know if it is possible to program a Sine Wave Oscsillator in JAVA. As far as I know it has already been done a few times before, and I have found examples here

But these examples are either not very well documented, or I just dont understand enough it.

I am working on a project at the university, where we are designing a framework to use SunSPOTS to send data from the built-in accelerometer to control frequencies by hand movement (the SunSPOTS being placed ont he user's hands) and thereby changing the fequency. But I need to start off somewhere, and that would be to actually make a JAVA Sine Wave Oscillator.

Any suggestions greatly appreciated!