java write to serial problem

How to use this class to write data to arduino? Arduino Playground - Java
Can you provide me with sample code?
I learned to listen but how to pass ints don't know. Need that for motor speed control

I learned to listen

That's 1/3 of the battle.

Learning to post code would be another 1/3 of the battle. Then, you'd be 2/3 of the way...