How can i access a char in string in at specific number? : <p>I tried this code but it is giving me errors.
So how can i access a character in a string in kotlin.
in java it can be done by charAt() method.</p>

<pre><code>private fun abc(x: String) {
    var i: Int = 0
    while (x[i].toString() != "+") {
        var y: Char = x[i]
        i++
    }
}
</code></pre>
