title: How to remove nul characters (\0) from string in Java
body: <p>I understand that this code in C# is trying to remove <code>nul</code> characters (<code>\0</code>) from a string.</p>
  
  <pre><code>string.Join("", mText.Split(new string[] { "\0" }, StringSplitOptions.None));
  </code></pre>
  
  <p>Is there any way to do that efficiently in Java?</p>