Dr Herbie said:
Shining Arcanine said:

Line 75 has will pick up the result of the (even = !even) assignment as the condition for the ternary operator, so it will flip-flop every iteration. Nicely succinct.





That's okay, I'll rewrite it First Year Undergraduate syntax:


Brush b;

if( even == true ) { even = false; }

else { even = true; }


if( even == true ) b = Brushes.Black;

else b = Brushes.White;


there Tongue Out