- 博客(5)
- 收藏
- 关注
原创 overloaded method value format with alternatives: (x$1: java.util.Locale,x$2: String,x$3: Object*
test("String.formatted in scala Double") { val a:Double = 1.200001 val b:Double = 1.3000001 println(String.format("%.2f , %.2f", a, b)) // 这里报错。。。。。。。。。 println(String.format("%.2f...
2019-07-30 20:16:07 3989
原创 Group coordinator ali-ddd-cdhdev-04:9092 (id: 2147483643 rack: null) is unavailable or invalid, wil
kafka 相应的hostname 和ip 对应关系没有配置
2019-07-23 19:51:41 9919 4
原创 Fixing Scala error on String.format: overloaded method value format with alternatives:
类型上需要一致, 统一成java 的。If you try to use a “Double” in scala, you may get errors passing it to Java:String.format("%-30s: %.2f ± %0.2f", kv._1, kv._2, kv._3)This is the error I got:[error] D:\projec...
2019-07-09 15:19:50 1721
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人