a > b ? true:false;
可以简化为if-else语句
if(a>b){ System.out.println("true"); }else{ System.out.println("false"); }
只有单目运算符、三元运算符、赋值运算符是从右向左运算的。