[warn] there were 1 feature warning(s); re-run with -feature for detailsメッセージのように-featureオプションをつける方法は、build.sbtに次の行を追加します。
scalacOptions += "-feature"なお、複数のオプションを指定するには次のようにする。
scalacOptions ++= Seq("-feature", "-deprecation")
[warn] there were 1 feature warning(s); re-run with -feature for detailsメッセージのように-featureオプションをつける方法は、build.sbtに次の行を追加します。
scalacOptions += "-feature"なお、複数のオプションを指定するには次のようにする。
scalacOptions ++= Seq("-feature", "-deprecation")
scala> 817.toHexString res6: String = 33116進→10進
scala> 0x123 res7: Int = 291大きい数の場合。BitIntの2つ目の引数は、基数。
scala> val a = BigInt("fedcba9876543210", 16)
res1: scala.math.BigInt = 18364758544493064720
BigInt型のオブジェクトが保持する数を16進文字列で表示
scal> a.toString(16) res2: String = fedcba9876543210