Hi, and welcome to the 'Ranch!
Just a quick tip for future reference, if you're going to post some source code
you should put it between code-tags, so it looks like this:
You can use the
Code button in the Reply editor to add them, or manually:
[code=java][/code]
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.