Printing array in Scala - Stack Overflow
mkString
will convert collections (including Array
) element-by-element to string representations.
println(a.mkString(" "))
is probably what you want.
Read full article from Printing array in Scala - Stack Overflow
No comments:
Post a Comment