Thursday, June 20, 2013

The Ternary Operator - Java

int i = imaInt < 10 ? 20 : 0;

Yep, that's it.  The ternary operator.

No comments: