插入缺少的部分以完成以下“简写 if...else
语句”(三元运算符):
int time = 20;
String result = @(1)time < 18@(1) @(1) "Good day." @(1) "Good evening.";
System.out.println(result);
int time = 20;
String result = (time < 18) ? "Good day." : "Good evening.";
System.out.println(result);