does java have ternary ooperator? code example Example: ternary operator java booleanExpression ? expression1 : expression2;