title: ArrayList copy all the above items when I add a new element? Java
body: <p>I have the following:</p>
  
  <pre><code>ArrayList&lt;int[]&gt; lista = new ArrayList&lt;int[]&gt;();
  
  int[] posible_mov = new int[2];
  
  posible_mov[0] = 0;
  posible_mov[1] = 0;
  lista.add(posible_mov);
  
  posible_mov[0] = 1;
  posible_mov[1] = 1;
  lista.add(posible_mov);
  </code></pre>
  
  <p>Well, if I walk the show with arraylist and get all elements method, shows me in both cases:</p>
  
  <p>lista.get(0) => 1, 1
  lista.get(1) => 1, 1</p>
  
  <p>WHY? </p>