1final String msg = num > 10
2 ? "Number is greater than 10"
3 : "Number is less than or equal to 10";
1int num = 8;
2String msg = "";
3if(num > 10) {
4 msg = "Number is greater than 10";
5}
6else {
7 msg = "Number is less than or equal to 10";
8}