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

Code Example 1

fun main(args: Array<String>) { 
    //A simple example of HashMap class define 
    // with empty "HashMap of <String, Int>" 
    var hashMap : HashMap<String, Int> 
            = HashMap<String, Int> ()  
}

Learn ReactJs, React Native from akashmittal.com