This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
At least you didn’t use the magic word “urgent”. And please note: that link includes another link about subject lines.
You have some code which works, but as you have said yourself, there is repeated code. You have already worked out how to write one row of asterisks. Now all you have to do is work out how to print that row repeatedly.