title: How do I add multiple copies of the same String to an existing ArrayList?
body: <p>I have an <code>ArrayList&lt;String&gt;</code>. I want to add n copies of a new <code>String</code> to it.</p>
  
  <p>I've Googled generally and searched on StackOverflow. I've looked at the documentation.</p>
  
  <p>Surely there's a better way than doing a loop?</p>
  
  <p>I was hoping for something like:</p>
  
  <pre><code>myArray.addAll (ArrayList&lt;String&gt;(count: 10, value: "123"))
  </code></pre>