java shorthand operator code example
Example 1: java ternary operator
Object myObject = booleanExpression ? valueIfTrue : valueIfFalse;
Example 2: ternary operator java
variable = (condition/expression1) ? expression2 if true : expression3 if false