How can I add and remove elements inside an array in Java?
<pre><code>String varname[] = {"red", "yellow", "green"};
</code></pre>

<p>I have an array declared like this. I wanted to know how can I add or remove elements to and from this array?</p>

<p><strong>NOTE : -</strong> Edited the question after seeing one of the OP's comments, saying what he wants.</p>
