Unlike Java, Kotlin doesn't have a ternary operator because we can easily achieve what ternary operator does, using an if-else expression.
確定! 回上一頁