title: Set values inside an already populated Integer ArrayList?
body: <p>As the question states I want to <code>add</code> (perform an arithmetic operation of addition) values to an integer ArrayList that has already been populated with some values. I Know how to sum an entire array list and output a single <code>int</code> value but I don't want that. Say that I have an <code>int</code> arraylist as follows:</p>
  <pre><code>ArrayList&lt;Integer&gt; a = new ArrayList&lt;Integer&gt;();
  </code></pre>
  <p><code>a</code> contains the following entries:</p>
  <pre><code>{5,6,7,8,9,10}
      
  </code></pre>
  <p>and an <code>int</code> variable:</p>
  <pre><code>int b = 25;
  </code></pre>
  <p>now I want to add <code>b</code> into every single entry inside the array list <code>a</code> so that the array list becomes:</p>
  <pre><code> a = {30,31,32,33,34,35};
  </code></pre>
  <p>I've tried just simply using <code>a.add(b)</code> but that just replaces every single entry inside <code>a</code> with 25.</p>