title: How can I initialize a collection and add data on the same line?
body: <p>In C# I can create a collection of some kind and initialize it with data on the same line.</p>
  
  <p><code>var foo = new List&lt;string&gt; {"one","two","three"};</code></p>
  
  <p>Is there an equivalent way to do this in Java?</p>