Have you looked at the descriptions out there ? (
1;
2)
I havn't played around with it, but I think those two articles tells the basics, if it has something to do with programming C, then think Java and remove all the class relevant, and ask if you wound up with something that isn't working.
Btw Mike, a few pointers from my bookmarks: (
1;
2;
3)