条件运算符 Another example. System. out. printIn( Your change is "+ count (count ==1)? Dime":"Dimes)); If count equals 1, then Dime is printed If count is anything other than 1, then"Dimes is printed JAVA13 条件运算符 • Another example: System.out.println ("Your change is " + count + ((count == 1) ? "Dime" : "Dimes")); • If count equals 1, then "Dime" is printed • If count is anything other than 1, then "Dimes" is printed