How to use the Ternary Operator in Java

How to use the Ternary Operator in Java