Have you tried it? It seems simple enough.
Just try the code first then worry about it later... when you actually try it you'll understand better.

Also I read about using this then... I think in the Javatutorials part.. or was that the JavaAlmanac... sorry havn't done java in a while. best bet is try it first.