###### 把str1和str2合并成一个新的String [] 并去掉其中重复的部分

String [] str1={"1001","1002","1003"};
String [] str2={"1001","1005","1010","1003"};
Vector v = new Vector();
for (int i = 0; i < str1.length; i ++) {
if (!v.contains(str1[i])) {
}
}
for (int i = 0; i < str2.length; i ++) {
if (!v.contains(str2[i])) {
}
}

String[] str1= new String[]{"1001","1002","1003"};
String[] str2= new String[]{"1001","1005","1010","1003"};
HashMap hp = new HashMap();

for(int i = 0 ; i < str1.length;i++){
hp.put(str1[i],"");

}
for(int i = 0 ; i < str2.length;i++){
hp.put(str2[i],"");

}

import java.util.*;

public class test1
{

public static void main(String [] args)
{
String [] str1={"1001","1002","1003"};
String [] str2={"1001","1005","1010","1003"};
HashSet sh = new HashSet();
for(int i=0;i<str1.length;i++)
for(int j=0;j<str2.length;j++)
Iterator i =sh.iterator();
while(i.hasNext()){

System.out.println(i.next());
}

}
}

#### java合并string[]数组

2016-11-02 16:56:54

#### string字符串-合并(strcat)

2010-11-05 15:39:00

#### string数组合并

2011-11-29 19:55:15

#### 字符串合并

2017-09-27 19:20:41

#### 合并字符串

2016-11-30 21:43:57

#### 两个String类型的数组合并

2018-04-04 17:44:08

#### NSString 字符串的合并

2013-08-23 13:56:39

#### Oracle String 合并与拆分

2011-08-06 21:40:10

#### java 字符串的比较与合并操作

2016-09-07 20:18:37

#### acm--保留字符串中的整数

2013-12-13 17:20:47