Java Developers...whats wrong with my code?

professor1942

Senior member
Dec 22, 2005
509
0
0
So you're trying to get it to print 3(or 6) spaces before the first number appears? You didn't close the first for loop before the numbers started. Also shouldn't it be print instead of println?

 

Skiguy411

Platinum Member
Dec 4, 2002
2,093
0
0
The two for loops are nested....the spacing didnt come out right when I typed it....I'll take a screen shot in a min.
 

Skiguy411

Platinum Member
Dec 4, 2002
2,093
0
0
Code updated.

I took out the first println and made it just print. However it still doesnt line up correctly (3 corresponds to Wed or the 4th column).
 

Skiguy411

Platinum Member
Dec 4, 2002
2,093
0
0
Nevermind! I got it! Thanks professor. You were right. They aren't suppose to be nested.

:)