// x ? y : z 如果x=ture 则结果为y 否则结果为z
例: int score = 50;
String type = score<60? "不合格" :"合格";
System.out.println(type);
输出为不合格
三元运算
原文:https://www.cnblogs.com/ly9943/p/12568925.html