How I can use another way to copy a Array to another Array?
My thought is to use the = operator. For example:
val A = Array(...)
val B = A
But this is okay?
Second way is to use for loop, for example:
val A = Array(...)
val B = new Array[](A.length)//here suppose the Type is same with A
for(i <- 0 until A.length)
B(i) = A(i)