How do I pass values to an array without creating variables?
<pre><code>public static void testArray(int[]a)
{
    for(int i:a)
    {

        if(i==10)
        {
        System.out.println("Number 10 exists !");
        }
    }
}
</code></pre>

<p>I want to pass parameters to this method without creating variables. I want to call it like so:</p>

<pre><code>testArray({5, 10, 15});
</code></pre>

<p>Is this possible?</p>
