title: Java quick array list
body: <p>I have a very simple question:</p>
  
  <p>How can I make this code more simple on Java:</p>
  
  <pre><code>ArrayList&lt;String&gt; s = new ArrayList&lt;String&gt;();
  s.add("str1");
  s.add("str hello");
  s.add("str bye");
  //...
  </code></pre>
  
  <p>Something like that:</p>
  
  <pre><code>ArrayList&lt;String&gt; s = {"a1", "str", "mystr"};
  </code></pre>
  
  <p>or that:</p>
  
  <pre><code>ArrayList&lt;String&gt; s = new ArrayList&lt;String&gt;("a1", "str", "mystr");
  </code></pre>
  
  <p>or that:</p>
  
  <pre><code>ArrayList&lt;String&gt; s = new ArrayList&lt;String&gt;();
  s.addAll("a1", "str", "mystr");
  </code></pre>
  
  <p>or that:</p>
  
  <pre><code>ArrayList&lt;String&gt; s = new ArrayList&lt;String&gt;();
  s.addAll(new ArrayElements("a1", "str", "mystr"));
  </code></pre>
  
  <p>I just want syntax hint. Thanks.</p>