What is the purpose of the ternary operator `?:` in Java?
The ternary operator is a shorthand way of writing an `if...else` statement. It returns one of two values depending on the boolean condition.
Impressive! You've correctly summarized the purpose of the ternary operator.
Can you provide an example where using the ternary operator improves code readability over a traditional `if...else` statement?