The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Re: pattern program

You should put the code brackets around your code so people can view your code easier.
But I fixed your code, I even posted it on your Profile (after your old thread got locked)

I fixed the code for ya: (I added if (i>=2) so it wouldn't have a space in the beginning. But if you don't mind, you don't need it. If you don't need it, just add a System.out.println; right after "for(i=1; i<=5; i++)". Msg me if you have questions regarding how I fixed your code!

.....

Last edited by copeg; February 16th, 2014 at 10:16 AM.
Reason: Removed Spoonfeeding