Check out example codes for "Kotlin get char in string". It will help you in understanding the concepts better.

Code Example 1

val hello = "Hello World"

    // Using get() function
    val W = hello.get(6)

    // Using indexing
    val e = hello[1]

Learn ReactJs, React Native from akashmittal.com