我现在有一个数组A={"a","b","c"} B={"d","e","f"}
我想得到数组C={"a","b","c","d","e","f"} ,有什么比较高效的办法?
C#对多个集合和数组的操作(合并,去重,判断)
List<int> Result = listA.Concat(listB).ToList<int>(); //保留重复项
非常感谢
int[]c=new int [a.length +b.length];for (int i =0;i <a.length;i ++){c [i]=a[i]} for(int i =0;I<b.length;I++){c[a. length +i]=b[i]}遍历操,这是用java写的