- toInt
Add Numbers (convert string to int)
examples/AddNumbers.scala
object AddNumbers { def main(args:Array[String]) { val first:Int = args(0).toInt val second:Int = args(1).toInt println(first + second) } }
object AddNumbers { def main(args:Array[String]) { val first:Int = args(0).toInt val second:Int = args(1).toInt println(first + second) } }