Hello all,

I have stumbled on a programming exercise and am in need of a little help.

Problem:Get an integer n from an input dialog, print out the following pattern on the console window.

For example, when n is 3, there are 5 (2 * n - 1 = 2 * 3 -1 = 5) rows in total:

example: http://david.vonetwork.net/pattern1.bmp

For another example, when n is 4 there are 7 (2 * n -1=2 * 4 -1 = 7) rows in total:

Example 2: http://david.vonetwork.net/pattern2.bmp

I know how to get n from an integer dialog box, but I am stuck in making the patterns. It is required that you use only nested for loops.

The Reward

I am unable to make this a paid project but I am offering 6 g-mail accounts for the correct solution

This should be a simple exercise for any experienced java programming. If you would like to help me out just post the solution either in this thread or in a pm.

Thanks for your help in advance,

Joe

PS. This post is going be posted on multiple forums, first one overall to get the correct solution gets the g0mail accounts. I will of course update you on the status