From which library to include inline List creation?
<p>I find myself re-implementing List creation method. But I'm sure that it is already implemented in some widely used library (if not in java itself). So my question is: Which useful library to include, to get functionality of following code:</p>

<pre><code>public static &lt;T&gt; List&lt;T&gt; buildList(T... args) {
    ArrayList&lt;T&gt; list = new ArrayList&lt;T&gt;();
    for (T arg : args)
    {
        list.add(arg);
    }
    return list;
}
</code></pre>

<p>EDIT: Already found what i was looking for: <a href="http://code.google.com/p/google-collections/" rel="nofollow">http://code.google.com/p/google-collections/</a>
I just import statically:</p>

<pre><code>import static com.google.common.collect.Lists.newArrayList;
</code></pre>

<p>and use:</p>

<pre><code>methodThatTakesArray(newArrayList("fst", "snd", "lst));
</code></pre>
