how is kotlin different from java 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
val age = 42
if (age < 10) {
println("You're too young to watch this movie")
} else if (age < 13) {
println("You can watch this movie with a parent")
} else {
println("You can watch this movie")
}