title: How to store an array returned by a method in Java
body: <p>I want to store the array returned by a method into another array. How can I do this? </p>
  
  <pre><code>public int[] method(){
      int z[] = {1,2,3,5};
      return z;
  }
  </code></pre>
  
  <p>When I call this method, how can I store the returned array (z) into another array?</p>