Possible Duplicate:
What is the Java ?: operator called and what does it do?
What is this type of code statement called? I've seen it in Java and C++ before, but I can't remember what it is called. int someVariable = (true) ? 1 : 0;
Possible Duplicate:
What is the Java ?: operator called and what does it do?
What is this type of code statement called? I've seen it in Java and C++ before, but I can't remember what it is called. int someVariable = (true) ? 1 : 0;
Its ternary operator to avoid line of codes for simple condition checking
int biggerNumber = a > b ? a : b;
even more
int bigNumber = a > b ? (a > c ? a : c) : b > c ? b : c ;