Search:

Type: Posts; User: andbin

Search: Search took 0.18 seconds.

  1. Re: Help with making a custom checkerboard with nested loop

    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...
  2. Re: Help with making a custom checkerboard with nested loop

    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().
    ;)
Results 1 to 2 of 2