As GregBrannon has pointed out (and I did not think immediately), it's also possible to do this with just 2 for nested loops and a bit of added math.
However my initial think about 4 nested for is...
Type: Posts; User: andbin
As GregBrannon has pointed out (and I did not think immediately), it's also possible to do this with just 2 for nested loops and a bit of added math.
However my initial think about 4 nested for is...
Are you sure you need all this long/complex code?
Hint: just 4 nested for are sufficient, with 1 System.out.print (for filler or space decided using the ?: operator) and 1 System.out.println().
;)