Java, What is a question mark "?" and colon ":" within the parentheses of a print function used for? What is its name?
<p>A quick question regarding using a question mark "?" and colon ":" operator within the parentheses of a print function. Mostly what do they do?</p>

<p>Iv read that they are similar to an 'if' 'else' statement</p>

<p>Does anyone know the standard term for them or where I can find more information on their use?</p>

<p>I just don’t really understand how they work</p>

<pre><code>int row = 10;
int column;

while (row &gt;= 1)
{
    column = 1;

    while(column &lt;= 10)
    {
        System.out.print(row % 2 == 1 ? "&lt;" : "\r&gt;");
        ++column;
    }

    --row;
    System.out.println();
</code></pre>

<p>As always any help is much appreciated</p>

<p>Deepend</p>
