is kotlin related to java code example
Example 1: Kotlin is like java
var myVariable = 42
myVariable = 50
val myConstant = 42
Example 2: Kotlin is like java
println("Hello, world!")
var myVariable = 42
myVariable = 50
val myConstant = 42
println("Hello, world!")