Kotlin get char in string
snippet in kotlin

Kotlin get char in string

user2257

val hello = "Hello World"

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

    // Using indexing
    val e = hello[1]