You have created an array of Tuple. Scala tuple combines a fixed number of items together so that they can be passed around as a whole. Unlike an array or list, a tuple can hold objects with different types but they are also immutable.
To access the value of tuple, Scala provides._1,._2 to access the value of a tuple.
For example
scala> val tuple = (2,4)
tuple: (Int, Int) = (2,4)
scala> tuple._1
res11: Int = 2
scala> tuple._2
res12: Int = 4
If you have more than two values in the tuple, ._3 will use to get the third value of tuple.
And similarly, you have created Arrays of tuple2.
scala> val arr = Array((1,1), (2,4), (3,9))
arr: Array[(Int, Int)] = Array((1,1), (2,4), (3,9))
scala> arr.map(tuple => "(" + tuple._1 + "," + tuple._2 + ")" )
res13: Array[String] = Array((1,1), (2,4), (3,9))
Another way you can use pattern matching to get the value.
scala> arr.map{
| case (a: Int, b: Int) => "(" + a + "," + b + ")" }
res17: Array[String] = Array((1,1), (2,4), (3,9))