title: Java replace method, replacing with empty character
body: <p>Suppose I have the following in <code>String</code> format:</p>
  
  <p><code>2.2</code></p>
  
  <p>And I want to replace the decimal point with an empty space, to make it look like this:</p>
  
  <p><code>22</code></p>
  
  <p>How do I do this? I thought <code>replace</code> would have done the trick, but when I try it like this:</p>
  
  <p><code>string.replace('.', '');</code></p>
  
  <p>I get an error with the <code>''</code> because it supposedly isn't a character. That makes sense, so how else can I accomplish what I want?</p>