title: Is there a way to create a collection of identical strings in java with one statement?
body: <p>I want to create a queue of Strings that will have many identical elements in it (I'm simulating a set of program instructions). Is there any way to create this collection all at once with a single statement? </p>
  
  <pre><code>myQueue.addAll(create collection of x strings);
  </code></pre>
  
  <p>Otherwise, I'll obviously have to loop x times and call <code>myqueue.add(String)</code> x times.</p>
  
  <p>Just wondering if there is a one-line instead of 3-line way to do this...</p>
  
  <p>Thanks!</p>