title: How can I access a char in string in at specific number?
body: <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 the <code>charAt()</code> method.</p>
  <pre><code>private fun abc(x: String) {
      var i: Int = 0
      while (x[i].toString() != &quot;+&quot;) {
          var y: Char = x[i]
          i++
      }
  }
  </code></pre>