How can I init a two-way array?


#1

Hi,

I want to init a matrix like Java: String[][] a = new String[6][10];
What is the same in Kotlin. Please give me a hand. Thank you.


#2

val a = Array(10) { arrayOfNulls<String>(6) }