why kotlin designed code example
Example 1: Kotlin is like java
val apples = 3
val oranges = 5
val fruitSummary = "I have ${apples + oranges} " +
"pieces of fruit."
Example 2: Kotlin is like java
var myVariable = 42
myVariable = 50
val myConstant = 42
Example 3: Kotlin is like java
val explicitDouble: Double = 70.0
Example 4: Kotlin is like java
println("Hello, world!")