How to use setters and getters for array
<p>okay so on my class diagram it shows</p>

<pre><code>void setVegetable( String veg[] )
String veg[] getVegetables()
</code></pre>

<p>Just wondering how I would code the statement for this?  </p>

<pre><code>public void setVegetables( String veg[] )  
{  
}
</code></pre>

<p>also how would I write the instance variables?<br>
do I still write it as  </p>

<pre><code>private string vegetables = "";
</code></pre>
