making array in kotlin code example
Example 1: kotlin create array with values
val numbers: IntArray = intArrayOf(10, 20, 30, 40, 50)
Example 2: kotlin array
val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)
val numbers: IntArray = intArrayOf(10, 20, 30, 40, 50)
val a: Array<Double> = arrayOf(3.0, 4.5, 8.0, 19.0)