In Kotlin, when a function does not return any meaningful value, it is declared to return Unit , just like void in Java: fun greet(): Unit { ...
確定! 回上一頁