How to declare a two dimensional ArrayList in Kotlin
-
Hi I'm new to Kotlin and I would like to declare an two-dimensional ArrayList (450/10) But it didn't work - tried different versions like
ArrayList>
or
arrayListOf(arrayListOf())
But it seems not the right one Can someone help me?
-
Hi I'm new to Kotlin and I would like to declare an two-dimensional ArrayList (450/10) But it didn't work - tried different versions like
ArrayList>
or
arrayListOf(arrayListOf())
But it seems not the right one Can someone help me?
-
It is not clear what you are actually trying to do. But maybe one of the other collection classes would be a better choice: see kotlin.collections - Kotlin Programming Language[^].
I would like a data structure like this a b c d e f a b c d e f a b c d e f a b c d e f and would like to access [2][3]=c
-
I would like a data structure like this a b c d e f a b c d e f a b c d e f a b c d e f and would like to access [2][3]=c
-
Hi I'm new to Kotlin and I would like to declare an two-dimensional ArrayList (450/10) But it didn't work - tried different versions like
ArrayList>
or
arrayListOf(arrayListOf())
But it seems not the right one Can someone help me?