Menu
×
×
Correct!
Exercise:Insert the missing parts to complete the following "short hand
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);
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 59 exercises.
Are you sure you want to continue?