Java - creating an object passing an array as a parameter
<p>I want to create an object from my class. My class has an array attribute, how do I pass it through the parenthesis?</p>

<p>This is my class:</p>

<pre><code>private String Description;
private int[] Data = {0, 0, 0, 0, 0, 0, 0, 0, 0};
    public Key(String Desc, int[] d)
{
    Description = Desc;
    Data = d;
}
</code></pre>

<p>And this is how I create the object:</p>

<pre><code>Key k1 = new Key("Shoham's Key", {0, 5 , 6, 4, 3, 2, 7, 1, 9});
</code></pre>

<p>Thanks.</p>
