package com.aura.scala.test
object ArarySort {
def main(args: Array[String]): Unit = {
val str="123456789"
var sum=0L
for (ch <- str){
sum= sum *10+(ch-'0')
}
println(sum)
// str.toCharArray.map(ch=>ch-'0').reduce((v1,v2)=>v1*10+v2)
}
}