does java support the ternary operator?
it is something i learned in c++, and recently learned that php supports
PHP Code:
<?
($i == 1) ? ($x = "i is 1") : ($x = "i is not 1");
?>
$first ? $second : $third
above is the format.. if $first is true, then execute the $second expression, else execute the $third expression.