我有 Scala 代码
System.out.println(String.format("%s %6d", "someName", someLong))
和错误:
overloaded method value format with alternatives:
[error] (java.util.Locale,java.lang.String,<repeated...>[java.lang.Object])java.lang.String <and>
[error] (java.lang.String,<repeated...>[java.lang.Object])java.lang.String
[error] cannot be applied to (java.lang.String, Long, String)
[error] System.out.println(String.format("%s %6d", "someName", someLong))
我该如何解决这个问题?