結果 : java ternary operator for 3 conditions