三元运算符面试题 package operator; public class Demo05 { //三元运算符 public static void main(String[] args) { //x ? y : z //如果x==true 结果为y 否则为z