kotlin vs java

104

Kotlin is like java -

// if is an expression, so ternary operation not needed
val loaded = true
val status = if (loaded) "Ready" else "Loading..."
// "Ready

Comments

Submit
0 Comments