And what is the problem...does it compile? Are there exceptions? Is the behavior not what you expect? See How to ask questions and for future reference, please wrap your code using the code tags (makes it much more readable)