Initialization

Report a typo

Select all the correct ways to initialize a string array:

a)

val stringArray = arrayOf("a", "b", "c")

b)

val stringArray = stringArrayOf("a", "b", "c")

c)

val stringArray = emptyArray<String>()

d)

val stringArray = emptyArray()

e)

val stringArray = arrayOf<String>()
Select one or more options from the list
___

Create a free account to access the full topic