Code java:
It prints out like this
Code java:1 2 3 4 1 2 3 1 2 1
But I want the spaces to be like this
Code java:1 2 3 4 1 2 3 1 2 1
Printable View
Code java:
It prints out like this
Code java:1 2 3 4 1 2 3 1 2 1
But I want the spaces to be like this
Code java: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:
Code :System.out.print(numbers + " ");
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.