Equivalent of PHP's  'array_splice' in java
<p>How can I implement <code>array_splice()</code> in java</p>

<pre><code>$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
// $input is now array("red", "green")
</code></pre>

<p><a href="http://php.net/array_splice" rel="nofollow">http://php.net/array_splice</a></p>
