Check out example codes for "make array list kotlin". It will help you in understanding the concepts better.

Code Example 1

fun main(args: Array<String>) { 
    // creating empty arraylist using constructor 
    var arraylist = ArrayList<String>() 
}

Learn ReactJs, React Native from akashmittal.com