C063.工具套件(Utility Packages)




2.8+

Meth.abs( )
$ scalac -deprecation script.scala 
script.scala:6: warning: object Math in package scala is deprecated: use scala.math package instead
    miles += Math.abs(distance)
             ^
one warning found

deprecated: use scala.math package instead