title: Using a for loop to copy one array to another
body: <p>I've been working with arrays and I'm trying to find a way to copy one array to another solely with a for loop (I've seen things like arrayCopy and clone in other threads, but for this exercise I need to just copy from one array to another using a for loop).</p>
  
  <p>Right now my code executes, but just spits this out: "[D@133c5982". The code I'm using is:</p>
  
  <pre><code>public class sorted 
  {
      public static void main(String[] args)
      {
          int [] unSortedArray = {8,12,6,5,19};
          System.out.println(copyArray(unSortedArray));
          //System.out.println(sortedArray(unSortedArray));
      }
  
      public static int[] copyArray(int[] array)
      {
          int [] copyArray;
          copyArray = new int[array.length];
          for (int i = 1; i &lt; array.length; i++)
      {
          copyArray[i] = array[i];
      }
      return copyArray;
  }
  </code></pre>