When creating an empty array:
var someArray = emptyArray<String>()
Is there anyway to add elements to it? I’ve tried
someArray.set(0, 1) and always get an ArrayIndexOutOfBoundsException.
I’ve looked at the documentation and all and couldn’t find any answers. Do I have to predefine a size? If so, how do I go about doing that?