title: Java String.format - method format(String, Object []) not applicable for argument format(String, float)
body: <p>I use this code in my project which is independent from other project.</p>
  
  <pre><code>float trg1 = 2.3f;
  String.format("%.2f",tgr1).replace(",", ".");
  </code></pre>
  
  <p>When I insert this in other project which is depends from other project I get error like this:</p>
  
  <blockquote>
    <p>method format(String, Object []) not applicable for argument format(String, float)</p>
  </blockquote>