title: Cannot to replace a string to another (boolean value) - Java
body: <pre><code>boolean b1 = false;
  boolean b2 = true;
  
  
  String s = new String(b1+""+b2);
  
  s.replaceAll("false", "f");
  s.replaceAll("true", "t");
  </code></pre>
  
  <p>Nothing is replaced. I still get "false true".
  I want to replace all "false" and "true", of the String, to "f" and "t".</p>
  
  <p>Im pretty sure Im not doing it the right way, and thats why I need your help, which will be greatly appreciated.</p>