String[] arr1 = {"abcd", "dfg", "abc"};
String[] arr2 = {"abcd", "ccd", "df", "d", "abc"};
String[] result_union = union(arr1, arr2);
System.out.println("求并集的结果如下:");
for (String str : result_union) {
System.out.println(str);
}
java字符串求并集
最新推荐文章于 2024-10-03 10:58:56 发布