title: how to change items in a list of string in java8
body: <p>I want to change all items in <code>list</code>.<br>
  What is the correct way to do it with <code>java8</code>?</p>
  
  <pre><code>public class TestIt {
  
  public static void main(String[] args) {
      ArrayList&lt;String&gt; l = new ArrayList&lt;&gt;();
      l.add("AB");
      l.add("A");
      l.add("AA");
      l.forEach(x -&gt; x = "b" + x);
      System.out.println(l);
  }
  
  }
  </code></pre>