Is it possible to initialize a String[] array and pass it in a method in 1 line?
<p>Right now I have the following code:</p>

<pre><code>String[] values = {str1, str2};
Utils.myMethod(values);
</code></pre>

<p>I would like to know if there is a way to do this all in one line. I've tried:</p>

<pre><code>Utils.myMethod({str1, str2});
</code></pre>

<p>But that doesn't work. Thanks in advance.</p>
