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.
Um...no. That's not how it works around here. This is a site where people come to learn how to program. If you want code handed to you without understanding how it works, then try stackoverflow.com. If you want to learn how to become a better programmer, then show us what you've tried and explain how it didn't work the way you expected. We're happy to help others learn, but this is not a code mill.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson