kotlin variable types code example
Example 1: kotlin variable
val name = ”Marcin” // Can't be changed
var age = 5 // Can be changed
age++
Example 2: kotlin cast types
val myInt: Int = 1.0 as Int
val name = ”Marcin” // Can't be changed
var age = 5 // Can be changed
age++
val myInt: Int = 1.0 as Int