how to use kotlin instead of java code example
Example 1: Kotlin is like java
println("Hello, world!")
Example 2: Kotlin is like java
// if is an expression, so ternary operation not needed
val loaded = true
val status = if (loaded) "Ready" else "Loading..."
// "Ready