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.
Ninad Kulkarni, please have a look at the Beginning Java forum title page, where is says not to give answers. Abhijit Kangale will learn much more by counting the objects than being told.
Please don't be annoyed with me, but I have "pulled rank" and transferred your answer to our "deleted" forum.
Aah we can't accept apologies, because Ninad is not allowed to say sorry , so now he'll have to say sorry for saying sorry (I hope this is funny, otherwise someone will kill me for making Poor Jokes)...