mkString
will convert collections (including Array
) element-by-element to string representations.
println(a.mkString(" "))
is probably what you want.
More Related Contents:
- Creating a specific pattern with two-dimensional array in scala
- How to pass Scala array into Scala vararg method?
- How to create and use a multi-dimensional array in Scala?
- Why are Arrays invariant, but Lists covariant?
- Why does `Array(0,1,2) == Array(0,1,2)` not return the expected result?
- Access Array column in Spark
- Appending an element to the end of a list in Scala
- How to convert an Array to a Tuple?
- Please help me access nested array
- remove an index number from array
- Passing arrays as parameters in bash
- Creating an Array from a Range in VBA
- Element-wise array replication in Matlab
- What is the ideal growth rate for a dynamically allocated array?
- Two-dimensional array in Swift
- How to iterate over array of objects in Handlebars?
- 1D Number Array Clustering
- Creating Indicator Matrix
- How to initialize two-dimensional arrays in Fortran
- How can I convert a buffer of a slice of bytes (&[u8]) to an integer?
- How to filter an array of objects based on values in an inner array with jq?
- Is there a Perl shortcut to count the number of matches in a string?
- How to split a string by new lines in Swift
- Pipe complete array-objects instead of array items one at a time?
- Assign to a bash array variable indirectly, by dynamically constructed variable name
- Maximum single-sell profit
- Unmarshal 2 different structs in a slice
- Swift: What’s the best way to pair up elements of an Array
- list items are not deleting properly (React)
- A different way to malloc a 2D array?