how to declare string array in kotlin code example
Example 1: how to declare string array in kotlin
//String[] in Java equivalent Array in Kotlin
//eg.
var array1 : Array = emptyArray()
var array2: Array = arrayOfNulls(4)
var array3: Array = arrayOf("Mashroom", "Kitkat", "Oreo", "Lolipop")
Example 2: how to make array in kotlin
val num = arrayOf(1, 2, 3, 4) //implicit type declaration
val num = arrayOf(1, 2, 3) //explicit type declaration