title: How to replace all characters in a Java string with stars
body: <p>I want to replace all the characters in a Java String with <code>*</code> character. So it shouldn't matter what character it is, it should be replaced with a <code>*</code>.</p>
  
  <p>I know there are heaps of examples there on internet but have not one that replaces every character and I have tried myself but no success.</p>