title: How to format strings in Scala?
body: <p>I need to print a formatted string containing scala.Long.
  java.lang.String.format() is incompatible with scala.Long (compile time) and RichLong (java.util.IllegalFormatConversionException)</p>
  
  <p>Compiler warns about deprecation of Integer on the following working code:</p>
  
  <pre><code>val number:Long = 3243
  String.format("%d", new java.lang.Long(number))
  </code></pre>
  
  <p>Should I change fomatter, data type or something else?</p>