why is java still used when kotlin code example
Example 1: Kotlin is like java
val label = "The width is "
val width = 94
val widthLabel = label + width
// The width is 94
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