The Java Ternary Operator functions like a simple if-statement which is able to return a value. In other words, the Java ternary operator is an expression. This Java Ternary Operator tutorial explains how the ternary operator works, how to chain multiple Java ternary operators into a single, more advanced expression etc.
Textual version of this Java Ternary Operator tutorial:
http://tutorials.jenkov.com/java/tern...