Run
Online Code Editor
Welcome to the javaTpoint.com
This is an example of ternary operator.