Write the simple program and work out the syntax problems there. It will be easier to post code with problems if its a short simple program.I don't know the syntax?
Read the API doc to see how to use the methods and constructors for the classes being used.
What method/class are you having problems with?