title: In java i tried replace char with ''. But it's showing "Empty Literal Character" error
body: <p>In java i tried replace char with ''. But it's showing "Empty Literal Character" error.I have condition about certain characters must be '' , not ' ' 
  Not include empty one character. Here is example code:</p>
  
  <pre><code>for(int i=0; int&lt;name.length;i++){
      name=name.replace(name.charAt(i),'');
      }
  </code></pre>
  
  <p>How can i do this ? Can you help ?</p>