原创 放了個雙休,補11.23第四天

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