It prints out like this
1 2 3 4 1 2 3 1 2 1
But I want the spaces to be like this
1 2 3 4 1 2 3 1 2 1
Welcome to the Java Programming Forums
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.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
It prints out like this
1 2 3 4 1 2 3 1 2 1
But I want the spaces to be like this
1 2 3 4 1 2 3 1 2 1
Any suggestions on what is flawed in my code?
Add more spaces in front of the numbers...
To be honest you're biggest problem is that in one minute you expected an answer and you spent a full 15 seconds posting your code instead of a SSCCE.
Change this line to remove the space and see what happens:
System.out.print(numbers + " ");
Need Java help? Check out the HotJoe Java Help forums!
copeg (May 25th, 2012)
Thanks for the worthless suggestion. I figured it out either way. And it had nothing to do with removing that line.
Nice way to thank someone trying to help you in their free, unpaid time. Responses like that don't win you any favors, and believe it or not do affect your chances of using these forums in a productive way in the future, and not following up your question with a statement about how you solved it even more so.