title: How do I replace an item in an array in an arraylist?
body: <p>I have an ArrayList, initialized as follows:</p>
  
  <pre><code>    public static List&lt;int[]&gt; items = new ArrayList&lt;int[]&gt;();
  </code></pre>
  
  <p>I add items to it like this:</p>
  
  <pre><code>    items.add(new int[] {2,0,1,0,1});
  </code></pre>
  
  <p>Can I change a specific entry on an array already on the ArrayList (for example: the 2 at index 0), or do I have to recreate the array every time with <code>items.set()</code>?</p>