This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Welcome to JavaRanch Please find the code button; I have edited your post so you can see how much better it looks, and the code is easier to read.
Do you have a particular question? It isn't obvious from your post. Or is this a reply to somebody else's question? If so, it really ought to have been posted as a reply on their thread. And I shall have to send you an important administrative private message.