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.
I'm sure lots of people here COULD...but they won't. We don't give out homework answers. Folks will help you learn java, give you tips, suggestions and corrections...but nobody here will (or should) give you the answer.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors