deleting a string
<p>I have an array of strings, and I want to delete a particular string from that array. How can I do that? My code is:</p>

<pre><code> private void nregexp(){
        String str_nregexp = i_exp_nregexp.getText();
        boolean b;
        for(int i=0; i&lt;selectedLocations.length; i++){
            b=  selectedLocations[i].indexOf(str_nregexp) &gt; 0;
            if(b){
                String i_matches = selectedLocations[i];
                ........
                ........
            }
        }
    }
</code></pre>

<p>I have to remove <code>i_matches</code> from <code>selectedLocations</code>.</p>
