How to append a letter to every element in an Array in scala
<p>I have a String Array:</p>

<pre><code>  var z:Array[String] =Array("hand", "ball", "eye")
</code></pre>

<p>i want to append a "s" to every element in z ,</p>

<p>i am new to scala, i can print them with appending 's' :</p>

<pre><code> z.foreach(arg =&gt;println(arg +"s"))
</code></pre>

<p>but what i am looking for is actually change all the elements in z to have an 's'.</p>