I moved your post to the Java in General forum, since it is specifically about Java (and not general computing).
A couple other house-keeping notes: first, it would help your code readability if you used code tags, please see UseCodeTags. For this post, I added them for you since we are past the point where you can edit your post, but in the future please add them yourself.
And finally, I don't actually see a question. What problem are you having?