📜  如何在 kotlin 代码示例中声明字符串数组

📅  最后修改于: 2022-03-11 14:53:33.336000             🧑  作者: Mango

代码示例1
//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")