title: Kotlin - Iterate through array
body: <p>I have an array like this and I would like to loop through it and get the value "B". I know how to get it in Java but I have no idea how to get it in Kotlin. Could someone show me how to do this? </p>
  
  <p>private val myArray = arrayOf({"A";"B"},{"C";"D"})</p>
  
  <p>Thanks.</p>