kotlin element at index in string
snippet in kotlin

kotlin element at index in string

user903

val hello = "Hello World"

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

    // Using indexing
    val e = hello[1]