package com.zxj.array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Main4 {
public static void main(String[] args) {
String a[] = {"A","E","I"};
String b[] = {"O","U"};
List list = new ArrayList(Arrays.asList(a));
list.addAll(Arrays.asList(b));
Object[] c = list.toArray();
System.out.println(Arrays.toString(c));
}
}
数组合并
最新推荐文章于 2023-06-14 17:47:32 发布