I am very new to scala programming , hence asking this question
My scala program is below
object FirstMain{
def main(args: Array[String]): Unit={
val myArray = Array(1,2,3,4)
val k =myArray.map(x => x*10)
println(k)
}
}
Why I am getting output as [I@14991ad
I want the array elements to be read and want each element to be multiplied with 10 and print the result
Also I would like to know what is the return type of map() in scala