去掉数组里重复的项
String[] str = new String[]{"你好","ding","你好","我好","ding","hong","你好"};
List<String> list = Arrays.asList(str);
Set<String> set = new HashSet<String>(list);
String[] s = (String[])set.toArray(new String[0]);
System.out.println("s's length :" + s.length);
for(int i = 0; i < s.length; i++){
System.out.println(s[i]);
}