kotlin access array element code example
Example 1: kotlin array
val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)
Example 2: kotlin size of array
arr = arrayOf(10, 20, 30, 40, 50)
// Use the size attribute
println(arr.size)
val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)
arr = arrayOf(10, 20, 30, 40, 50)
// Use the size attribute
println(arr.size)