Group Group Group Group Group Group Group Group Group

Need help about List

how to write this :

var myList : List<Int?> = [null, null]
but it give me an error
i need to declare a list of null array
thx in advance

var myList: List<Array<Int>?> = listOf(null, null)

@maelamrani Is this what you are trying to do?

No
if i want the result will be ? = [null, null]
what should i write in the ?
@shogunkaramazov
thx

This topic was automatically closed after 166 days. New replies are no longer allowed.