I have two arrayList
ArrayList ar1 = new ArrayList();
ArrayList ar2 = new ArrayList();
ar1 is having values { A,B,C,D}
and ar2 is having values {1,2,3,4}
I want to add these two array list such that
output should be
A 1
B 2
C 3
D 4
I have used
ar1.addrange(ar2);
and the output is like this
A
B
C
D
1
2
3
4
Any suggestions how to resolve this?
This should do the trick.