val array = new Array[String](10) array.update(7, "hello") array(7) = "hello" // simply calls out to update