I have two ArrayList(List[String]) e.g:
ArrayList1: ArrayList1:
List(a, b, c) List(1, 2, 3)
List(d, e, f) List(4, 5, 6)
List(g,h, i) List(7,8, 9)
I want to use scala to join in parallel such as doing this
val ArrayList12 = ArrayList1 ++ ArrayList2
but this is not what I want since the ArrayList2 got added at the end of ArrayList1
Please I will appreciate help using scala to have a parallel join in this form:
List(a, b, c,1,2,3)
List(d, e, f,4,5,6)
List(g,h,i,7,8,9)