Ternary Operator (?:) Java 中的三元运算
The syntax for using it is:
variable = expression1 ? expression2 : expression 3
Here,
expression1 can be any expression that evaluates to a boolean value.
If expression1 is true, then expr
原创
2017-08-17 03:28:06 ·
1493 阅读 ·
0 评论