Hi,
I have two arraylist
1st arraylist contain{beb,aaa,ccc,eee,ddd}
2nd array contain {ggg,ff,rrr,ttt,yyy}
Now my requirement is i want to get the result as string or array like {beb ggg,aaa ff,ccc rrr,eee ttt,ddd yyy} How to achieve this.
Hi Bebins,
Your title is Quite Different than your requirement you have specified in the Question desctription. Please be specific. However considering your requirement in the Description section.
ArrayList ar1 = new ArrayList { "beb", "aaa", "ccc", "eee", "ddd" }; ArrayList ar2 = new ArrayList { "ggg", "ff", "rrr", "ttt", "yyy" }; ArrayList ar3 = new ArrayList(); for (int i = 0; i < ar2.Count; i++) { ar3.Add(ar1[i]); ar3.Add(ar2[i]); }
Thanks and Regards,
Rk_Hirpara
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.