The when statement replaces Java's switch. Kotlin introduced the when statement. Let's see an example: val firstName = "Daniel" when ( ...
確定! 回上一頁