error in replaceAll() method
<p>i have error in <code>String st=str.replaceAll(" ","");</code>
But include the <code>import java.lang.String.*;</code>
After adding this line again same error repeated.. 
So please anyone help me to solve the error..</p>

<pre><code>String st=str.replaceAll(" ","");  
</code></pre>
