title: adding 1 to an ArrayList item
body: <p>I'm checking the frequency of the dice totals after 36 million rolls. I planned to make an arrayList and use it as a tally system when any of the 11 results came up.  How would I add 1 to one of the items in the list?</p>
  
  <pre><code>int die1, die2, dicetotal;
  
  ArrayList&lt;Integer&gt; results = new ArrayList&lt;Integer&gt;();  
  results.add(0); //for the 11th
  
  for(int i = 0; i &lt; 36000000; i++){
            die1 = (int)(Math.random() * 6) + 1
            die2 = (int)(Math.random() * 6) + 1
            dicetotal = die1 + die2;
  
            Switch (dicetotal){
                   case 2: results.set(0, CURRENT + 1);
                   ...
                   ...
                   ...
  
        }
  </code></pre>