三元運算符: (關係表達)表達式1,表達式2, int age=18; age>18?true:false; 例如:int i; i=age>18?1:0; 大於18輸出1小於則輸出0 String s