----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

>                       var1=(i%2==0)?0:arr[i];

basically, it says:

if i mod 2 is 0
        var1=0
else
        var1=arr[i]

% is the modulus operator (remainder after division.)
?: is the ternary operator for if-then-else.

and this is related to apache because . . . ?

-Daryn


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to