Or someone could just give you the answers like that and ruin the whole learning process
Anyway, there are a couple of ways that I can think of to solve this problem, off the top of my head. The one is above, the other is using just one for loop, but adding a * each iteration to a String, and then printing the String. Both are equally valid solutions.
One of the main things to remember when doing formatting like this, or in general, is the use of System.out.print() and System.out.println(). One prints out on the same line, the other prints to the current line and then adds a return character to the end, making the next print out to be on a new line.
Jason