Code:
object Permutations extends App
{
val ar=Array(1,2,3).combinations(2).foreach(println(_))
}
Output:
[I@378fd1ac [I@49097b5d [I@6e2c634b
I am trying to execute this but I am getting some other values.
How to print array values in Scala? Can any one help to print?