title: copy 2-dimensional Array
body: <p>I want to copy a 2-dimensional Array. I want to do this with for-loops and I have a idea how to do so, but I can't complete the rest.</p>
  
  <pre><code>def copy(bild:Array[Array[Int]]):Unit = {
  
      for(x &lt;- 0 until bild.length)
      for(y &lt;- 0 until bild(x).length) {
          bild(x)(y) = 
          //i don't know how to create the new array
      }
  
  }
  </code></pre>